From a3e4ac018c47c45ec0c3cad1711ff727350454e1 Mon Sep 17 00:00:00 2001 From: Brett Bartrum <17114576+bartrumb@users.noreply.github.com> Date: Sun, 29 Nov 2026 11:57:34 -0600 Subject: [PATCH] feat(wave3-b2): add 32 schema, community & store adapters + #140 deltas (#234-#270) Implement Wave 3 / Round 2 Batch B2 (#234-#270) on top of #140 across Categories D, E, F, G, H, and I: - Category D (Universal Schema.org, #234-#241): schema-vehicle, schema-faq-howto, schema-dataset, schema-software-app, schema-medical + additive precedence yields, schema-localbusiness.json fixture, and >=4 negative cases on #140's schema-recipe, schema-event, and schema-localbusiness - Category E (Community, #242-#250): wild-apricot, association-ams-pack, runsignup, bikereg-usacycling, race-results-pack, lemmy, peertube, fediverse-pack + ChamberMaster classic/events support & >=4 negative cases on #140's chambermaster-growthzone - Categories F/G/H (Property, Restaurant & IR/Newsrooms, #251-#261): appfolio-listings, pm-listing-widgets, multifamily-portals, idx-broker-showcase, popmenu, bentobox, square-toast-menu, schema-menu, q4-ir, ir-portal-pack, company-newsrooms - Category I (Store Add-Ons, #262-#270): shopify-hydrogen, recharge-bold-subscriptions, shopify-filter-apps, rebuy-searchanise, aftership-tracking-page, branded-tracking-pack, gorgias-reamaze, klaviyo-attentive-forms + same-origin page-key companion discovery & >=4 negative cases on #140's shopify-storefront-graphql Compiled 356 manifests in internal/extract/manifests/compiled.json with 0 staticcheck warnings and verified Batch B2 gates. Signed-off-by: Brett Bartrum <17114576+bartrumb@users.noreply.github.com> --- hub/scripts/compile-manifests.mjs | 61 + hub/scripts/run-tests.mjs | 1 + hub/src/extractors/declarative.ts | 53 +- .../adapters/aftership-tracking-page.json | 41 + .../fixtures/adapters/appfolio-listings.json | 35 + .../adapters/association-ams-pack.json | 35 + hub/test/fixtures/adapters/bentobox.json | 35 + .../fixtures/adapters/bikereg-usacycling.json | 37 + .../adapters/branded-tracking-pack.json | 36 + .../adapters/chambermaster-growthzone.json | 13 +- .../fixtures/adapters/company-newsrooms.json | 35 + .../fixtures/adapters/fediverse-pack.json | 37 + .../fixtures/adapters/gorgias-reamaze.json | 36 + .../adapters/idx-broker-showcase.json | 35 + .../fixtures/adapters/ir-portal-pack.json | 35 + .../adapters/klaviyo-attentive-forms.json | 36 + hub/test/fixtures/adapters/lemmy.json | 37 + .../adapters/multifamily-portals.json | 35 + hub/test/fixtures/adapters/peertube.json | 37 + .../fixtures/adapters/pm-listing-widgets.json | 35 + hub/test/fixtures/adapters/popmenu.json | 35 + hub/test/fixtures/adapters/q4-ir.json | 36 + .../fixtures/adapters/race-results-pack.json | 37 + .../fixtures/adapters/rebuy-searchanise.json | 44 + .../adapters/recharge-bold-subscriptions.json | 36 + hub/test/fixtures/adapters/runsignup.json | 37 + .../fixtures/adapters/schema-dataset.json | 38 + hub/test/fixtures/adapters/schema-event.json | 10 + .../fixtures/adapters/schema-faq-howto.json | 36 + .../adapters/schema-localbusiness.json | 35 + .../fixtures/adapters/schema-medical.json | 37 + hub/test/fixtures/adapters/schema-menu.json | 35 + hub/test/fixtures/adapters/schema-recipe.json | 10 + .../adapters/schema-software-app.json | 38 + .../fixtures/adapters/schema-vehicle.json | 39 + .../adapters/shopify-filter-apps.json | 44 + .../fixtures/adapters/shopify-hydrogen.json | 37 + .../adapters/shopify-storefront-graphql.json | 11 + .../fixtures/adapters/square-toast-menu.json | 36 + hub/test/fixtures/adapters/wild-apricot.json | 36 + hub/test/wave3-b2-cat-d.ts | 255 ++ hub/test/wave3-b2-cat-e.ts | 315 +++ hub/test/wave3-b2-cat-fgh.ts | 281 ++ hub/test/wave3-b2-cat-i.ts | 316 +++ .../wave3-b2-schema-community-store.test.ts | 290 ++ internal/catalog/wave2b_commerce.go | 9 + internal/classify/content_state.go | 150 +- internal/classify/content_state_test.go | 102 + internal/extract/declarative.go | 37 + .../manifests/aftership-tracking-page.yaml | 20 + .../extract/manifests/appfolio-listings.yaml | 20 + .../manifests/association-ams-pack.yaml | 21 + internal/extract/manifests/bentobox.yaml | 23 + .../extract/manifests/bikereg-usacycling.yaml | 46 + .../manifests/branded-tracking-pack.yaml | 19 + .../manifests/chambermaster-growthzone.yaml | 7 +- .../extract/manifests/company-newsrooms.yaml | 46 + internal/extract/manifests/compiled.json | 2 +- .../extract/manifests/fediverse-pack.yaml | 75 + .../extract/manifests/gorgias-reamaze.yaml | 20 + .../manifests/idx-broker-showcase.yaml | 22 + .../extract/manifests/ir-portal-pack.yaml | 37 + .../manifests/klaviyo-attentive-forms.yaml | 19 + internal/extract/manifests/lemmy.yaml | 105 + .../manifests/multifamily-portals.yaml | 22 + internal/extract/manifests/peertube.yaml | 89 + .../extract/manifests/pm-listing-widgets.yaml | 22 + internal/extract/manifests/popmenu.yaml | 21 + internal/extract/manifests/q4-ir.yaml | 44 + .../extract/manifests/race-results-pack.yaml | 35 + .../extract/manifests/rebuy-searchanise.yaml | 44 + .../recharge-bold-subscriptions.yaml | 17 + internal/extract/manifests/runsignup.yaml | 64 + .../extract/manifests/schema-dataset.yaml | 18 + internal/extract/manifests/schema-event.yaml | 19 +- .../extract/manifests/schema-faq-howto.yaml | 20 + .../manifests/schema-localbusiness.yaml | 5 +- .../extract/manifests/schema-medical.yaml | 20 + internal/extract/manifests/schema-menu.yaml | 19 + internal/extract/manifests/schema-recipe.yaml | 3 + .../manifests/schema-software-app.yaml | 20 + .../extract/manifests/schema-vehicle.yaml | 18 + .../manifests/shopify-filter-apps.yaml | 40 + .../extract/manifests/shopify-hydrogen.yaml | 18 + .../manifests/shopify-storefront-graphql.yaml | 3 +- .../extract/manifests/square-toast-menu.yaml | 23 + internal/extract/manifests/wild-apricot.yaml | 21 + internal/extract/platform_twins.go | 156 +- internal/extract/round2_platforms_html.go | 33 +- internal/extract/round2_platforms_json.go | 75 +- internal/extract/round2_platforms_schema.go | 43 +- internal/extract/wave2a_extractors.go | 6 + internal/extract/wave3_community.go | 2368 ++++++++++++++++ internal/extract/wave3_community_test.go | 276 ++ internal/extract/wave3_prop_rest_ir.go | 2454 +++++++++++++++++ internal/extract/wave3_prop_rest_ir_test.go | 287 ++ internal/extract/wave3_schema.go | 1604 +++++++++++ internal/extract/wave3_schema_test.go | 492 ++++ internal/extract/wave3_store_addons.go | 1963 +++++++++++++ internal/extract/wave3_store_addons_test.go | 266 ++ 100 files changed, 14169 insertions(+), 68 deletions(-) create mode 100644 hub/test/fixtures/adapters/aftership-tracking-page.json create mode 100644 hub/test/fixtures/adapters/appfolio-listings.json create mode 100644 hub/test/fixtures/adapters/association-ams-pack.json create mode 100644 hub/test/fixtures/adapters/bentobox.json create mode 100644 hub/test/fixtures/adapters/bikereg-usacycling.json create mode 100644 hub/test/fixtures/adapters/branded-tracking-pack.json create mode 100644 hub/test/fixtures/adapters/company-newsrooms.json create mode 100644 hub/test/fixtures/adapters/fediverse-pack.json create mode 100644 hub/test/fixtures/adapters/gorgias-reamaze.json create mode 100644 hub/test/fixtures/adapters/idx-broker-showcase.json create mode 100644 hub/test/fixtures/adapters/ir-portal-pack.json create mode 100644 hub/test/fixtures/adapters/klaviyo-attentive-forms.json create mode 100644 hub/test/fixtures/adapters/lemmy.json create mode 100644 hub/test/fixtures/adapters/multifamily-portals.json create mode 100644 hub/test/fixtures/adapters/peertube.json create mode 100644 hub/test/fixtures/adapters/pm-listing-widgets.json create mode 100644 hub/test/fixtures/adapters/popmenu.json create mode 100644 hub/test/fixtures/adapters/q4-ir.json create mode 100644 hub/test/fixtures/adapters/race-results-pack.json create mode 100644 hub/test/fixtures/adapters/rebuy-searchanise.json create mode 100644 hub/test/fixtures/adapters/recharge-bold-subscriptions.json create mode 100644 hub/test/fixtures/adapters/runsignup.json create mode 100644 hub/test/fixtures/adapters/schema-dataset.json create mode 100644 hub/test/fixtures/adapters/schema-faq-howto.json create mode 100644 hub/test/fixtures/adapters/schema-localbusiness.json create mode 100644 hub/test/fixtures/adapters/schema-medical.json create mode 100644 hub/test/fixtures/adapters/schema-menu.json create mode 100644 hub/test/fixtures/adapters/schema-software-app.json create mode 100644 hub/test/fixtures/adapters/schema-vehicle.json create mode 100644 hub/test/fixtures/adapters/shopify-filter-apps.json create mode 100644 hub/test/fixtures/adapters/shopify-hydrogen.json create mode 100644 hub/test/fixtures/adapters/square-toast-menu.json create mode 100644 hub/test/fixtures/adapters/wild-apricot.json create mode 100644 hub/test/wave3-b2-cat-d.ts create mode 100644 hub/test/wave3-b2-cat-e.ts create mode 100644 hub/test/wave3-b2-cat-fgh.ts create mode 100644 hub/test/wave3-b2-cat-i.ts create mode 100644 hub/test/wave3-b2-schema-community-store.test.ts create mode 100644 internal/extract/manifests/aftership-tracking-page.yaml create mode 100644 internal/extract/manifests/appfolio-listings.yaml create mode 100644 internal/extract/manifests/association-ams-pack.yaml create mode 100644 internal/extract/manifests/bentobox.yaml create mode 100644 internal/extract/manifests/bikereg-usacycling.yaml create mode 100644 internal/extract/manifests/branded-tracking-pack.yaml create mode 100644 internal/extract/manifests/company-newsrooms.yaml create mode 100644 internal/extract/manifests/fediverse-pack.yaml create mode 100644 internal/extract/manifests/gorgias-reamaze.yaml create mode 100644 internal/extract/manifests/idx-broker-showcase.yaml create mode 100644 internal/extract/manifests/ir-portal-pack.yaml create mode 100644 internal/extract/manifests/klaviyo-attentive-forms.yaml create mode 100644 internal/extract/manifests/lemmy.yaml create mode 100644 internal/extract/manifests/multifamily-portals.yaml create mode 100644 internal/extract/manifests/peertube.yaml create mode 100644 internal/extract/manifests/pm-listing-widgets.yaml create mode 100644 internal/extract/manifests/popmenu.yaml create mode 100644 internal/extract/manifests/q4-ir.yaml create mode 100644 internal/extract/manifests/race-results-pack.yaml create mode 100644 internal/extract/manifests/rebuy-searchanise.yaml create mode 100644 internal/extract/manifests/recharge-bold-subscriptions.yaml create mode 100644 internal/extract/manifests/runsignup.yaml create mode 100644 internal/extract/manifests/schema-dataset.yaml create mode 100644 internal/extract/manifests/schema-faq-howto.yaml create mode 100644 internal/extract/manifests/schema-medical.yaml create mode 100644 internal/extract/manifests/schema-menu.yaml create mode 100644 internal/extract/manifests/schema-software-app.yaml create mode 100644 internal/extract/manifests/schema-vehicle.yaml create mode 100644 internal/extract/manifests/shopify-filter-apps.yaml create mode 100644 internal/extract/manifests/shopify-hydrogen.yaml create mode 100644 internal/extract/manifests/square-toast-menu.yaml create mode 100644 internal/extract/manifests/wild-apricot.yaml create mode 100644 internal/extract/wave3_community.go create mode 100644 internal/extract/wave3_community_test.go create mode 100644 internal/extract/wave3_prop_rest_ir.go create mode 100644 internal/extract/wave3_prop_rest_ir_test.go create mode 100644 internal/extract/wave3_schema.go create mode 100644 internal/extract/wave3_schema_test.go create mode 100644 internal/extract/wave3_store_addons.go create mode 100644 internal/extract/wave3_store_addons_test.go diff --git a/hub/scripts/compile-manifests.mjs b/hub/scripts/compile-manifests.mjs index 084aa3c..eac6422 100644 --- a/hub/scripts/compile-manifests.mjs +++ b/hub/scripts/compile-manifests.mjs @@ -279,6 +279,42 @@ export const VALID_HTML_MODES = new Set([ 'smb_ats_full_html', 'edu_job_boards_html', 'healthcare_careers_html', + // Wave 3 B2 Category D (Universal Schema.org #237-#241, deduplicated with #140) + 'schema_vehicle_html', + 'schema_faq_howto_html', + 'schema_dataset_html', + 'schema_software_app_html', + 'schema_medical_html', + // Wave 3 B2 Category E (Community #243-#250, deduplicated with #140) + 'wild_apricot_html', + 'association_ams_html', + 'runsignup_html', + 'bikereg_usacycling_html', + 'race_results_pack_html', + 'lemmy_html', + 'peertube_html', + 'fediverse_pack_html', + // Wave 3 B2 Categories F/G/H (Property, Restaurant & IR/Newsrooms #251-#261) + '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', + // Wave 3 B2 Category I (Store Add-Ons #263-#270, deduplicated with #140) + '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', ]); const pslDatPath = join(manifestsDir, 'public_suffix_list.dat'); @@ -457,6 +493,31 @@ const APPROVED_WILDCARD_DOMAIN_PATTERNS = new Set([ '*.freshteam.com', '*.homerun.co', '*.healthcaresource.com', + // Wave 3 B2 Category E + '*.chambermaster.com', + '*.growthzoneapp.com', + '*.wildapricot.org', + '*.memberclicks.net', + '*.site-ym.com', + // Wave 3 B2 Categories F/G/H + '*.appfolio.com', + '*.managebuilding.com', + '*.propertyware.com', + '*.rentmanager.com', + '*.rentcafe.com', + '*.entrata.com', + '*.realpage.com', + '*.idxbroker.com', + '*.popmenu.com', + '*.getbento.com', + '*.q4web.com', + '*.prowly.com', + '*.prezly.com', + // Wave 3 B2 Category I + '*.aftership.com', + '*.narvar.com', + '*.gorgias.help', + '*.reamaze.com', ]); const RESERVED_CORE_ATS_DOMAINS = new Set([ diff --git a/hub/scripts/run-tests.mjs b/hub/scripts/run-tests.mjs index 681270b..3226cb5 100644 --- a/hub/scripts/run-tests.mjs +++ b/hub/scripts/run-tests.mjs @@ -103,6 +103,7 @@ const suiteSpecs = [ ['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/wave3-b2-schema-community-store.test.ts', 'wave3-b2-schema-community-store.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 77aa6d5..219ce5f 100644 --- a/hub/src/extractors/declarative.ts +++ b/hub/src/extractors/declarative.ts @@ -591,7 +591,15 @@ export type DeclarativeJsonMode = | 'bullhorn_joborder_json' | 'staffing_ats_json' | 'manatal_jobs_json' - | 'smb_ats_json'; + | 'smb_ats_json' + | 'runsignup_json' + | 'bikereg_json' + | 'lemmy_json' + | 'peertube_json' + | 'fediverse_pack_json' + | 'q4_ir_json' + | 'shopify_filter_apps_json' + | 'rebuy_searchanise_json'; export interface DeclarativeExtractSpec { commerceMode?: DeclarativeCommerceMode; @@ -622,7 +630,9 @@ export interface DeclarativeExtractSpec { | 'edge_cloud_changelog_xml' | 'fhfa_hpi_csv' | 'public_share_csv' - | 'boarddocs_text'; + | 'boarddocs_text' + | 'ir_portal_rss_xml' + | 'company_newsroom_rss_xml'; pathParam?: string; codeByPath?: DeclarativeCodeByPathSpec; xml?: DeclarativeXmlSpec; @@ -921,7 +931,44 @@ export type DeclarativeHtmlMode = | 'staffing_ats_pack_html' | 'smb_ats_full_html' | 'edu_job_boards_html' - | 'healthcare_careers_html'; + | 'healthcare_careers_html' + | 'schema_recipe_html' + | 'schema_event_html' + | 'schema_localbusiness_html' + | 'schema_vehicle_html' + | 'schema_faq_howto_html' + | 'schema_dataset_html' + | 'schema_software_app_html' + | 'schema_medical_html' + | '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' + | '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' + | 'shopify_storefront_graphql_html' + | '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'; export interface DeclarativeHtmlRouteSpec { id?: string; diff --git a/hub/test/fixtures/adapters/aftership-tracking-page.json b/hub/test/fixtures/adapters/aftership-tracking-page.json new file mode 100644 index 0000000..a958667 --- /dev/null +++ b/hub/test/fixtures/adapters/aftership-tracking-page.json @@ -0,0 +1,41 @@ +{ + "adapterId": "aftership-tracking-page", + "mode": "html", + "inputUrl": "https://nealsyardremedies.aftership.com/", + "mockPayload": "Track Your Order | Neal's Yard Remedies

Track Your Order

", + "expectTitleIncludes": "Track Your Order", + "expectMarkdownIncludes": [ + "Neal's Yard Remedies", + "1Z999AA10123456784", + "UPS", + "Boston, MA" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Tracking Not Found

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

Application Error

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

Scheduled Maintenance

AfterShip portal is under maintenance.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + }, + { + "name": "cf-challenge", + "status": 403, + "payload": "Just a moment...
Enable JavaScript and cookies to continue
" + } + ] +} diff --git a/hub/test/fixtures/adapters/appfolio-listings.json b/hub/test/fixtures/adapters/appfolio-listings.json new file mode 100644 index 0000000..e097e7b --- /dev/null +++ b/hub/test/fixtures/adapters/appfolio-listings.json @@ -0,0 +1,35 @@ +{ + "adapterId": "appfolio-listings", + "mode": "html", + "inputUrl": "https://lapmg.appfolio.com/listings", + "mockPayload": "Rental Listings

Available Rental Listings

1234 Sunset Blvd #204, Los Angeles, CA 90026

$2,450/mo | 2 bd | 1 ba | 920 sq ft
", + "expectTitleIncludes": "Rental Listings", + "expectMarkdownIncludes": [ + "Los Angeles Property Management Group", + "1234 Sunset Blvd #204", + "$2,450" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Page Not Found

" + }, + { + "name": "redirect-to-page-not-found-sub", + "status": 200, + "finalUrl": "https://www.appfolio.com/page-not-found-sub", + "payload": "Page not found | AppFolio

Page not found

The page you requested could not be found.

" + }, + { + "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/association-ams-pack.json b/hub/test/fixtures/adapters/association-ams-pack.json new file mode 100644 index 0000000..232f610 --- /dev/null +++ b/hub/test/fixtures/adapters/association-ams-pack.json @@ -0,0 +1,35 @@ +{ + "adapterId": "association-ams-pack", + "mode": "html", + "inputUrl": "https://www.austinaptassoc.com/events", + "mockPayload": "Events - Austin Apartment Association

Events

2026 Annual Trade Show & Expo

Connect with multifamily property managers and suppliers across Central Texas.

", + "expectTitleIncludes": "Austin Apartment Association", + "expectMarkdownIncludes": [ + "Novi AMS", + "2026 Annual Trade Show", + "multifamily property managers" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 - Page Not Found

Page Not Found

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

Site Maintenance

This portal is temporarily unavailable due to scheduled maintenance.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/bentobox.json b/hub/test/fixtures/adapters/bentobox.json new file mode 100644 index 0000000..bc4ae26 --- /dev/null +++ b/hub/test/fixtures/adapters/bentobox.json @@ -0,0 +1,35 @@ +{ + "adapterId": "bentobox", + "mode": "html", + "inputUrl": "https://www.gramercytavern.com/dining-room-menu/", + "mockPayload": "Menu | Gramercy Tavern

Dining Room Menu

First Courses

Roasted Maitake Mushrooms

Brioche, egg yolk, smoked bone marrow

$28

", + "expectTitleIncludes": "Dining Room Menu", + "expectMarkdownIncludes": [ + "First Courses", + "Roasted Maitake Mushrooms", + "$28" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page Not Found

Page Not Found

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

Page Not Found

" + }, + { + "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/bikereg-usacycling.json b/hub/test/fixtures/adapters/bikereg-usacycling.json new file mode 100644 index 0000000..fb1ab0f --- /dev/null +++ b/hub/test/fixtures/adapters/bikereg-usacycling.json @@ -0,0 +1,37 @@ +{ + "adapterId": "bikereg-usacycling", + "mode": "twin", + "inputUrl": "https://www.bikereg.com/api/search?name=Hush%20Money", + "expectedFetchUrl": "https://www.bikereg.com/api/search?name=Hush%20Money", + "mockPayload": "{\"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)/\"]}]}]}", + "expectTitleIncludes": "Hush Money Gravel Classic", + "expectMarkdownIncludes": [ + "BikeReg", + "2026-11-27", + "Lancaster, PA", + "$25.00" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":\"Event not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.bikereg.com/error", + "payload": "{\"error\":\"Redirected to error\"}" + }, + { + "name": "maintenance-shell", + "status": 503, + "payload": "503 Service Unavailable

Down for Maintenance

BikeReg is temporarily unavailable.

" + }, + { + "name": "empty-events-json", + "status": 200, + "payload": "{\"MatchingEvents\":[]}" + } + ] +} diff --git a/hub/test/fixtures/adapters/branded-tracking-pack.json b/hub/test/fixtures/adapters/branded-tracking-pack.json new file mode 100644 index 0000000..61b55ef --- /dev/null +++ b/hub/test/fixtures/adapters/branded-tracking-pack.json @@ -0,0 +1,36 @@ +{ + "adapterId": "branded-tracking-pack", + "mode": "html", + "inputUrl": "https://tracking.narvar.com/asics/tracking", + "mockPayload": "ASICS Order Tracking | Narvar

ASICS Order Tracking

", + "expectTitleIncludes": "ASICS Order Tracking", + "expectMarkdownIncludes": [ + "Narvar", + "ASICS", + "9400111899223344556677", + "Newark, NJ" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Tracking Not Found

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

Error

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

Down for Maintenance

" + }, + { + "name": "route-empty-csr-shell", + "status": 200, + "payload": "Route Tracking
" + } + ] +} diff --git a/hub/test/fixtures/adapters/chambermaster-growthzone.json b/hub/test/fixtures/adapters/chambermaster-growthzone.json index bb38d79..c67c69e 100644 --- a/hub/test/fixtures/adapters/chambermaster-growthzone.json +++ b/hub/test/fixtures/adapters/chambermaster-growthzone.json @@ -2,7 +2,7 @@ "adapterId": "chambermaster-growthzone", "mode": "html", "inputUrl": "https://business.fortworthchamber.com/list/category/apartments-25", - "mockPayload": "Apartments - Fort Worth Chamber
\n
\n
\n
\n
\n \n \n \n \n
\n
\n\"Powered\n", + "mockPayload": "Apartments - Fort Worth Chamber
\n
\n
\n
\n
\n Alta River Park\n
\n
\n
\n
    \n
  • \n 3224 Trinity View Drive\n Fort Worth\n
  • \n
  • (817) 693-2800
  • \n
\n
\n
\n
\"Powered\n", "expectMarkdownIncludes": [ "The Harden at Public Market", "(817) 693-2800", @@ -18,6 +18,17 @@ "name": "maintenance-or-block", "status": 503, "payload": "Scheduled Maintenance

Service Unavailable

" + }, + { + "name": "empty-directory-shell", + "status": 200, + "payload": "Loading...
" + }, + { + "name": "member-login-gate", + "status": 200, + "finalUrl": "https://business.fortworthchamber.com/login", + "payload": "Member Login

Sign In to Member Portal

" } ] } diff --git a/hub/test/fixtures/adapters/company-newsrooms.json b/hub/test/fixtures/adapters/company-newsrooms.json new file mode 100644 index 0000000..1b5a778 --- /dev/null +++ b/hub/test/fixtures/adapters/company-newsrooms.json @@ -0,0 +1,35 @@ +{ + "adapterId": "company-newsrooms", + "mode": "twin", + "inputUrl": "https://residence.prowly.com/rss", + "expectedFetchUrl": "https://residence.prowly.com/rss", + "mockPayload": "Residence Newsroomhttps://residence.prowly.com/Residence Launches New Architecture Anthologyhttps://residence.prowly.com/12345-architecture-anthologyTue, 10 Nov 2026 10:00:00 +0000Annual hardcover volume highlighting Nordic residential design.", + "expectTitleIncludes": "Residence Newsroom", + "expectMarkdownIncludes": [ + "Residence Launches New Architecture Anthology", + "Nordic residential design" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Page Not Found

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

Scheduled Maintenance

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

" + }, + { + "name": "empty-rss-shell", + "status": 200, + "payload": "Residence Newsroom" + } + ] +} diff --git a/hub/test/fixtures/adapters/fediverse-pack.json b/hub/test/fixtures/adapters/fediverse-pack.json new file mode 100644 index 0000000..59c7575 --- /dev/null +++ b/hub/test/fixtures/adapters/fediverse-pack.json @@ -0,0 +1,37 @@ +{ + "adapterId": "fediverse-pack", + "mode": "twin", + "inputUrl": "https://misskey.io/notes/au4n1wud00cl0t3s", + "expectedFetchUrl": "https://misskey.io/api/notes/show", + "mockPayload": "{\"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}", + "expectTitleIncludes": "@testuser@misskey.io", + "expectMarkdownIncludes": [ + "Misskey", + "@testuser@misskey.io", + "Hello from Misskey fediverse note!" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":{\"message\":\"No such note.\",\"code\":\"NO_SUCH_NOTE\",\"id\":\"972a\"}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://misskey.io/error", + "payload": "{\"error\":\"Not found\"}" + }, + { + "name": "maintenance-shell", + "status": 503, + "payload": "503 Service Unavailable

Down for Maintenance

Misskey server is under maintenance.

" + }, + { + "name": "anubis-pow-shell", + "status": 200, + "inputUrl": "https://gehirneimer.de/", + "payload": "Making sure you're not a bot!

Making sure you're not a bot! Protected by Anubis.

" + } + ] +} diff --git a/hub/test/fixtures/adapters/gorgias-reamaze.json b/hub/test/fixtures/adapters/gorgias-reamaze.json new file mode 100644 index 0000000..647fbd1 --- /dev/null +++ b/hub/test/fixtures/adapters/gorgias-reamaze.json @@ -0,0 +1,36 @@ +{ + "adapterId": "gorgias-reamaze", + "mode": "html", + "inputUrl": "https://support.burga.com/en-US/articles/contact-us-24868", + "mockPayload": "Contact Us | BURGA Help Center

How to Contact Support

", + "expectTitleIncludes": "How to Contact Support", + "expectMarkdownIncludes": [ + "Gorgias", + "How to Contact Support", + "2026-11-15", + "live chat" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Article Not Found

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

Error

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

Scheduled Maintenance

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/idx-broker-showcase.json b/hub/test/fixtures/adapters/idx-broker-showcase.json new file mode 100644 index 0000000..4ea94e7 --- /dev/null +++ b/hub/test/fixtures/adapters/idx-broker-showcase.json @@ -0,0 +1,35 @@ +{ + "adapterId": "idx-broker-showcase", + "mode": "html", + "inputUrl": "https://entityrealty.com/", + "mockPayload": "Featured Homes | Entity Realty

Featured Properties

410 Barton Springs Rd, Austin, TX 78704

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

View Listing
", + "expectTitleIncludes": "Featured Properties", + "expectMarkdownIncludes": [ + "Entity Realty", + "410 Barton Springs Rd", + "ATX99812" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

404 Not Found

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

Page Not Found

" + }, + { + "name": "waf-403-forbidden", + "status": 403, + "payload": "403 Forbidden

403 Forbidden

You don't have permission to access this resource.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/ir-portal-pack.json b/hub/test/fixtures/adapters/ir-portal-pack.json new file mode 100644 index 0000000..4148829 --- /dev/null +++ b/hub/test/fixtures/adapters/ir-portal-pack.json @@ -0,0 +1,35 @@ +{ + "adapterId": "ir-portal-pack", + "mode": "twin", + "inputUrl": "https://ir.bowheadspecialty.com/news-events/press-releases/rss", + "expectedFetchUrl": "https://ir.bowheadspecialty.com/news-events/press-releases/rss", + "mockPayload": "Bowhead Specialty Press Releaseshttps://ir.bowheadspecialty.com/Bowhead Specialty Announces Third Quarter 2026 Resultshttps://ir.bowheadspecialty.com/news-events/press-releases/detail/102/q3-2026-resultsWed, 04 Nov 2026 21:00:00 GMTGross written premiums grew 21.4% year-over-year.", + "expectTitleIncludes": "Bowhead Specialty Press Releases", + "expectMarkdownIncludes": [ + "Bowhead Specialty Announces Third Quarter 2026 Results", + "Gross written premiums grew 21.4%" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Page Not Found

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

Scheduled Maintenance

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

" + }, + { + "name": "empty-rss-shell", + "status": 200, + "payload": "Bowhead Specialty Press Releases" + } + ] +} diff --git a/hub/test/fixtures/adapters/klaviyo-attentive-forms.json b/hub/test/fixtures/adapters/klaviyo-attentive-forms.json new file mode 100644 index 0000000..4f7cc45 --- /dev/null +++ b/hub/test/fixtures/adapters/klaviyo-attentive-forms.json @@ -0,0 +1,36 @@ +{ + "adapterId": "klaviyo-attentive-forms", + "mode": "html", + "inputUrl": "https://www.getcasely.com/", + "mockPayload": "Casely | Bold Phone Cases

Shop Bold Phone Cases

Sign up for 15% off your first case order.

", + "expectTitleIncludes": "Casely", + "expectMarkdownIncludes": [ + "Read-only", + "L74p8W", + "XyZ123", + "casely" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Page Not Found

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

Error

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

Down for Maintenance

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/lemmy.json b/hub/test/fixtures/adapters/lemmy.json new file mode 100644 index 0000000..7e59e05 --- /dev/null +++ b/hub/test/fixtures/adapters/lemmy.json @@ -0,0 +1,37 @@ +{ + "adapterId": "lemmy", + "mode": "twin", + "inputUrl": "https://lemmy.world/post/54926010", + "expectedFetchUrl": "https://lemmy.world/api/v3/post?id=54926010", + "mockPayload": "{\"post_view\":{\"post\":{\"id\":54926010,\"name\":\"Lost Art [PizzaCake]\",\"url\":\"https://example.org/art.webp\",\"body\":\"Source link inside post body.\",\"published\":\"2026-11-27T19:02:23.319418Z\"},\"creator\":{\"name\":\"Gormadt\",\"display_name\":\"Gormadt\"},\"community\":{\"name\":\"comics\"},\"counts\":{\"score\":142,\"comments\":19}}}", + "expectTitleIncludes": "Lost Art [PizzaCake]", + "expectMarkdownIncludes": [ + "Lemmy", + "!comics", + "Gormadt", + "Source link inside post body." + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":\"couldnt_find_post\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://lemmy.world/error", + "payload": "{\"error\":\"couldnt_find_post\"}" + }, + { + "name": "maintenance-shell", + "status": 503, + "payload": "503 Service Unavailable

Down for Maintenance

Lemmy instance is temporarily unavailable.

" + }, + { + "name": "empty-comments-json", + "status": 200, + "payload": "{\"comments\":[]}" + } + ] +} diff --git a/hub/test/fixtures/adapters/multifamily-portals.json b/hub/test/fixtures/adapters/multifamily-portals.json new file mode 100644 index 0000000..56e7b69 --- /dev/null +++ b/hub/test/fixtures/adapters/multifamily-portals.json @@ -0,0 +1,35 @@ +{ + "adapterId": "multifamily-portals", + "mode": "html", + "inputUrl": "https://www.canvasatmidlothian.com/", + "mockPayload": "Floor Plans | Canvas at Midlothian

Floor Plans

The Oakwood

$1,725/mo | 2 Bed | 2 Bath | 1,080 sq ft
View Floor Plan
", + "expectTitleIncludes": "Floor Plans", + "expectMarkdownIncludes": [ + "Canvas at Midlothian", + "The Oakwood", + "$1,725" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Page Not Found

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

Down for Maintenance

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/peertube.json b/hub/test/fixtures/adapters/peertube.json new file mode 100644 index 0000000..7b3ea7e --- /dev/null +++ b/hub/test/fixtures/adapters/peertube.json @@ -0,0 +1,37 @@ +{ + "adapterId": "peertube", + "mode": "twin", + "inputUrl": "https://video.blender.org/w/v3kudnbEWnLVG5Fzormny6", + "expectedFetchUrl": "https://video.blender.org/api/v1/videos/v3kudnbEWnLVG5Fzormny6", + "mockPayload": "{\"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 from Amsterdam.\",\"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\"}}", + "expectTitleIncludes": "PAINT features + Bye 2026", + "expectMarkdownIncludes": [ + "PeerTube", + "Blender Today", + "CC-BY", + "Weekly Blender development show" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":\"Video not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://video.blender.org/error", + "payload": "{\"error\":\"Not found\"}" + }, + { + "name": "maintenance-shell", + "status": 503, + "payload": "503 Service Unavailable

Scheduled Maintenance

PeerTube node is down for maintenance.

" + }, + { + "name": "empty-captions-json", + "status": 200, + "payload": "{\"total\":0,\"data\":[]}" + } + ] +} diff --git a/hub/test/fixtures/adapters/pm-listing-widgets.json b/hub/test/fixtures/adapters/pm-listing-widgets.json new file mode 100644 index 0000000..20a9944 --- /dev/null +++ b/hub/test/fixtures/adapters/pm-listing-widgets.json @@ -0,0 +1,35 @@ +{ + "adapterId": "pm-listing-widgets", + "mode": "html", + "inputUrl": "https://portland.managebuilding.com/Resident/public/rentals", + "mockPayload": "Rentals | Portland Property Group

Available Rentals

742 NW Flanders St, Unit 3B

$1,895 / month | 2 Bed | 1 Bath | 860 sq ft

", + "expectTitleIncludes": "Rentals", + "expectMarkdownIncludes": [ + "Buildium", + "742 NW Flanders St, Unit 3B", + "$1,895" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Page Not Found

The page you requested could not be found.

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

Scheduled Maintenance

This portal is temporarily unavailable. Please check back soon.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/popmenu.json b/hub/test/fixtures/adapters/popmenu.json new file mode 100644 index 0000000..e790483 --- /dev/null +++ b/hub/test/fixtures/adapters/popmenu.json @@ -0,0 +1,35 @@ +{ + "adapterId": "popmenu", + "mode": "html", + "inputUrl": "https://samplebistro.popmenu.com/menu", + "mockPayload": "Dinner Menu | Sample Bistro

Dinner Menu

Wood-Fired Margherita Pizza

$18.50

San Marzano tomatoes, fresh mozzarella, basil.

", + "expectTitleIncludes": "Dinner Menu", + "expectMarkdownIncludes": [ + "Sample Bistro", + "Wood-Fired Margherita Pizza", + "$18.50" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Menu Not Found

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

Page Not Found

" + }, + { + "name": "cloudflare-challenge-403", + "status": 403, + "payload": "Just a moment...
Checking your browser
" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/q4-ir.json b/hub/test/fixtures/adapters/q4-ir.json new file mode 100644 index 0000000..800152f --- /dev/null +++ b/hub/test/fixtures/adapters/q4-ir.json @@ -0,0 +1,36 @@ +{ + "adapterId": "q4-ir", + "mode": "twin", + "inputUrl": "https://mtr.q4web.com/feed/PressRelease.svc/GetPressReleaseList?LanguageId=1&bodyType=0&pressReleaseDateFilter=3&pageSize=5&pageNumber=0", + "expectedFetchUrl": "https://mtr.q4web.com/feed/PressRelease.svc/GetPressReleaseList?LanguageId=1&bodyType=0&pressReleaseDateFilter=3&pageSize=5&pageNumber=0", + "mockPayload": "{\"GetPressReleaseListResult\":[{\"Headline\":\"Q4 Systems Reports Record Third Quarter Revenue\",\"PressReleaseDate\":\"11/12/2026 08:00:00\",\"LinkToDetailPage\":\"https://mtr.q4web.com/news/record-q3-2026\",\"ShortBody\":\"Revenue increased 24% year-over-year driven by enterprise IR adoption.\"}]}", + "expectTitleIncludes": "Investor Relations Press Releases", + "expectMarkdownIncludes": [ + "Q4 Systems Reports Record Third Quarter Revenue", + "11/12/2026 08:00:00", + "Revenue increased 24%" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

404 Not Found

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

Page Not Found

" + }, + { + "name": "cloudflare-challenge-403", + "status": 403, + "payload": "Just a moment...
Checking your browser
" + }, + { + "name": "empty-q4-json-shell", + "status": 200, + "payload": "{\"GetPressReleaseListResult\":[]}" + } + ] +} diff --git a/hub/test/fixtures/adapters/race-results-pack.json b/hub/test/fixtures/adapters/race-results-pack.json new file mode 100644 index 0000000..432fac1 --- /dev/null +++ b/hub/test/fixtures/adapters/race-results-pack.json @@ -0,0 +1,37 @@ +{ + "adapterId": "race-results-pack", + "mode": "html", + "inputUrl": "https://www.active.com/baltimore-md/running/distance-running-races/9th-annual-homewood-holiday-5k-2026", + "mockPayload": "9th Annual Homewood Holiday 5k - Baltimore, MD

9th Annual Homewood Holiday 5k

", + "expectTitleIncludes": "9th Annual Homewood Holiday 5k", + "expectMarkdownIncludes": [ + "Race Results Pack", + "2026-12-06", + "Johns Hopkins Homewood Field", + "Baltimore, MD, 21210" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "We're unable to find the page you're looking for.

Page Not Found

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

Error

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

Site Under Maintenance

Race results are temporarily unavailable.

" + }, + { + "name": "empty-csr-spa-shell", + "status": 200, + "inputUrl": "https://www.athlinks.com/event/382820", + "payload": "Athlinks
" + } + ] +} diff --git a/hub/test/fixtures/adapters/rebuy-searchanise.json b/hub/test/fixtures/adapters/rebuy-searchanise.json new file mode 100644 index 0000000..d63f220 --- /dev/null +++ b/hub/test/fixtures/adapters/rebuy-searchanise.json @@ -0,0 +1,44 @@ +{ + "adapterId": "rebuy-searchanise", + "mode": "twin", + "allowPageKeyTwins": true, + "inputUrl": "https://www.searchserverapi.com/getresults?apiKey=1Q7P8A7s4h&q=&output=json&maxResults=3", + "expectedFetchUrl": "https://www.searchserverapi.com/getresults?apiKey=1Q7P8A7s4h&q=&output=json&maxResults=3", + "mockPayload": "{\"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\"},{\"product_id\":\"902\",\"title\":\"Liquid Morning Multivitamin\",\"product_code\":\"MR-MLT-02\",\"price\":\"39.95\",\"vendor\":\"MaryRuth Organics\",\"link\":\"https://www.maryruthorganics.com/products/multivitamin\"}]}", + "expectTitleIncludes": "Searchanise Product Search", + "expectMarkdownIncludes": [ + "Liquid Chlorophyll Drops", + "MR-CHL-01", + "24.95", + "MaryRuth Organics" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Error

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

Down for Maintenance

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + }, + { + "name": "invalid-api-key-json", + "status": 400, + "payload": "{\"error\":\"Invalid API key\"}" + } + ] +} diff --git a/hub/test/fixtures/adapters/recharge-bold-subscriptions.json b/hub/test/fixtures/adapters/recharge-bold-subscriptions.json new file mode 100644 index 0000000..4937b3e --- /dev/null +++ b/hub/test/fixtures/adapters/recharge-bold-subscriptions.json @@ -0,0 +1,36 @@ +{ + "adapterId": "recharge-bold-subscriptions", + "mode": "html", + "inputUrl": "https://us.whogivesacrap.org/products/100-recycled-toilet-paper-jumbo-rolls", + "mockPayload": "100% Recycled Toilet Paper Jumbo Rolls | Who Gives A Crap

100% Recycled Toilet Paper Jumbo Rolls

", + "expectTitleIncludes": "100% Recycled Toilet Paper Jumbo Rolls", + "expectMarkdownIncludes": [ + "Recharge", + "Who Gives A Crap", + "USD 52.00", + "Every 4 Weeks" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Product Not Found

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

Error

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

Scheduled Maintenance

Storefront temporarily unavailable.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/runsignup.json b/hub/test/fixtures/adapters/runsignup.json new file mode 100644 index 0000000..eb15913 --- /dev/null +++ b/hub/test/fixtures/adapters/runsignup.json @@ -0,0 +1,37 @@ +{ + "adapterId": "runsignup", + "mode": "twin", + "inputUrl": "https://runsignup.com/Rest/race/68640", + "expectedFetchUrl": "https://runsignup.com/Rest/race/68640?format=json", + "mockPayload": "{\"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\"}]}}", + "expectTitleIncludes": "Bacon & Bubbles 5K", + "expectMarkdownIncludes": [ + "RunSignup", + "2027-06-12", + "Port Huron, MI, 48060", + "5K Run" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":{\"error_code\":404,\"error_msg\":\"Invalid race ID\"}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://runsignup.com/error", + "payload": "{\"error\":\"Not found\"}" + }, + { + "name": "maintenance-shell", + "status": 503, + "payload": "503 Service Unavailable

Down for Maintenance

RunSignup is temporarily unavailable.

" + }, + { + "name": "empty-races-json", + "status": 200, + "payload": "{\"races\":[]}" + } + ] +} diff --git a/hub/test/fixtures/adapters/schema-dataset.json b/hub/test/fixtures/adapters/schema-dataset.json new file mode 100644 index 0000000..1aae2f3 --- /dev/null +++ b/hub/test/fixtures/adapters/schema-dataset.json @@ -0,0 +1,38 @@ +{ + "adapterId": "schema-dataset", + "mode": "html", + "inputUrl": "https://registry.opendata.aws/noaa-goes/", + "mockPayload": "NOAA GOES - Registry of Open Data on AWS

NOAA GOES

", + "expectTitleIncludes": "NOAA Geostationary Operational Environmental Satellites", + "expectMarkdownIncludes": [ + "NOAA National Environmental Satellite", + "noaa-goes", + "2017-05-24/..", + "North America", + "application/x-netcdf", + "1.2 TB" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Dataset Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://registry.opendata.aws/error", + "payload": "Error

Error

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

Scheduled Maintenance

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/schema-event.json b/hub/test/fixtures/adapters/schema-event.json index ebc75ba..bb61cc3 100644 --- a/hub/test/fixtures/adapters/schema-event.json +++ b/hub/test/fixtures/adapters/schema-event.json @@ -18,6 +18,16 @@ "name": "maintenance-or-block", "status": 503, "payload": "Scheduled Maintenance

Service Unavailable

" + }, + { + "name": "cloudflare-challenge", + "status": 403, + "payload": "Just a moment...
" + }, + { + "name": "empty-calendar-shell", + "status": 200, + "payload": "Loading...
" } ] } diff --git a/hub/test/fixtures/adapters/schema-faq-howto.json b/hub/test/fixtures/adapters/schema-faq-howto.json new file mode 100644 index 0000000..00423a7 --- /dev/null +++ b/hub/test/fixtures/adapters/schema-faq-howto.json @@ -0,0 +1,36 @@ +{ + "adapterId": "schema-faq-howto", + "mode": "html", + "inputUrl": "https://yoast.com/features/structured-data/faq-block/", + "mockPayload": "FAQ block - Yoast SEO Feature

FAQ block

", + "expectTitleIncludes": "FAQ block", + "expectMarkdownIncludes": [ + "FAQPage", + "Do I need to know how to code to use the FAQ block?", + "WordPress editor", + "Does the FAQ block emit valid JSON-LD?" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Not Found

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

Error

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

Scheduled Maintenance

This site is temporarily unavailable due to scheduled maintenance.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/schema-localbusiness.json b/hub/test/fixtures/adapters/schema-localbusiness.json new file mode 100644 index 0000000..1625d0c --- /dev/null +++ b/hub/test/fixtures/adapters/schema-localbusiness.json @@ -0,0 +1,35 @@ +{ + "adapterId": "schema-localbusiness", + "mode": "html", + "inputUrl": "https://www.apple.com/retail/fifthavenue/", + "mockPayload": "Apple Fifth Avenue - Apple Store - Apple

Apple Fifth Avenue

", + "expectTitleIncludes": "Apple Fifth Avenue", + "expectMarkdownIncludes": [ + "767 Fifth Avenue, New York, NY, 10153, US", + "(212) 336-1440", + "40.76383, -73.97296", + "## Amenities" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Page Cannot Be Found

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

Service Unavailable

" + }, + { + "name": "cloudflare-challenge", + "status": 403, + "payload": "Just a moment...
" + }, + { + "name": "empty-locator-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/schema-medical.json b/hub/test/fixtures/adapters/schema-medical.json new file mode 100644 index 0000000..338bd50 --- /dev/null +++ b/hub/test/fixtures/adapters/schema-medical.json @@ -0,0 +1,37 @@ +{ + "adapterId": "schema-medical", + "mode": "html", + "inputUrl": "https://my.clevelandclinic.org/health/diseases/6424-asthma", + "mockPayload": "Asthma: Types, Causes, Symptoms, Diagnosis & Treatment

Asthma

", + "expectTitleIncludes": "Asthma", + "expectMarkdownIncludes": [ + "MedicalWebPage", + "Pulmonology", + "Wheezing", + "Inhaled corticosteroids", + "Cleveland Clinic" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Page Not Found

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

Error

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

Scheduled Maintenance

Site is down for maintenance. Please check back soon.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/schema-menu.json b/hub/test/fixtures/adapters/schema-menu.json new file mode 100644 index 0000000..ddb1559 --- /dev/null +++ b/hub/test/fixtures/adapters/schema-menu.json @@ -0,0 +1,35 @@ +{ + "adapterId": "schema-menu", + "mode": "html", + "inputUrl": "https://www.chilis.com/menu", + "mockPayload": "Menu | Chili's

Chili's Menu

", + "expectTitleIncludes": "Chili's Menu", + "expectMarkdownIncludes": [ + "Chili's Grill & Bar", + "Skillet Queso", + "USD 11.29" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Page Not Found

" + }, + { + "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/schema-recipe.json b/hub/test/fixtures/adapters/schema-recipe.json index 204f2bb..c6acd58 100644 --- a/hub/test/fixtures/adapters/schema-recipe.json +++ b/hub/test/fixtures/adapters/schema-recipe.json @@ -20,6 +20,16 @@ "name": "maintenance-or-block", "status": 503, "payload": "Scheduled Maintenance

Service Unavailable

" + }, + { + "name": "cloudflare-challenge", + "status": 403, + "payload": "Just a moment...
" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" } ] } diff --git a/hub/test/fixtures/adapters/schema-software-app.json b/hub/test/fixtures/adapters/schema-software-app.json new file mode 100644 index 0000000..773e912 --- /dev/null +++ b/hub/test/fixtures/adapters/schema-software-app.json @@ -0,0 +1,38 @@ +{ + "adapterId": "schema-software-app", + "mode": "html", + "inputUrl": "https://code.visualstudio.com/", + "mockPayload": "Visual Studio Code - Code Editing. Redefined

Visual Studio Code

", + "expectTitleIncludes": "Visual Studio Code", + "expectMarkdownIncludes": [ + "1.148", + "Mac, Linux, Windows", + "DeveloperApplication", + "0 USD", + "Microsoft", + "https://code.visualstudio.com/download" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Not Found

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

Error

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

Scheduled Maintenance

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/schema-vehicle.json b/hub/test/fixtures/adapters/schema-vehicle.json new file mode 100644 index 0000000..e71f7d3 --- /dev/null +++ b/hub/test/fixtures/adapters/schema-vehicle.json @@ -0,0 +1,39 @@ +{ + "adapterId": "schema-vehicle", + "mode": "html", + "inputUrl": "https://www.hondaofseattle.com/viewdetails/used/5tdkdrbh0rs544979/2024-toyota-highlander-sport-utility", + "mockPayload": "Used 2024 Toyota Highlander Platinum | Honda of Seattle

Used 2024 Toyota Highlander Platinum

", + "expectTitleIncludes": "Used 2024 Toyota Highlander Platinum", + "expectMarkdownIncludes": [ + "5TDKDRBH0RS544979", + "Toyota", + "Highlander", + "2024", + "92020 mi", + "33688 USD", + "Honda of Seattle" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Vehicle Not Found

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

Error

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

Scheduled Maintenance

Site is down for maintenance. Please check back soon.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/shopify-filter-apps.json b/hub/test/fixtures/adapters/shopify-filter-apps.json new file mode 100644 index 0000000..c05fb2c --- /dev/null +++ b/hub/test/fixtures/adapters/shopify-filter-apps.json @@ -0,0 +1,44 @@ +{ + "adapterId": "shopify-filter-apps", + "mode": "twin", + "allowPageKeyTwins": true, + "inputUrl": "https://services.mybcapps.com/bc-sf-filter/filter?shop=get-casely.myshopify.com&page=1&limit=5", + "expectedFetchUrl": "https://services.mybcapps.com/bc-sf-filter/filter?shop=get-casely.myshopify.com&page=1&limit=5", + "mockPayload": "{\"total_product\":2,\"products\":[{\"id\":901,\"title\":\"MagSafe Leather Case\",\"handle\":\"magsafe-leather-case\",\"vendor\":\"Casely\",\"product_type\":\"Phone Case\",\"price_min\":35.00,\"available\":true,\"url\":\"/products/magsafe-leather-case\"},{\"id\":902,\"title\":\"Bold Power Pod\",\"handle\":\"bold-power-pod\",\"vendor\":\"Casely\",\"product_type\":\"Charger\",\"price_min\":60.00,\"available\":true,\"url\":\"/products/bold-power-pod\"}],\"filter\":{\"options\":[{\"label\":\"Device\",\"values\":[{\"key\":\"iPhone 16 Pro\"}]}]}}", + "expectTitleIncludes": "Shopify Filter Catalog", + "expectMarkdownIncludes": [ + "MagSafe Leather Case", + "Casely", + "35.00", + "iPhone 16 Pro" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Error

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

Scheduled Maintenance

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + }, + { + "name": "boost-403-json", + "status": 403, + "payload": "{\"message\":\"403 Forbidden: \"}" + } + ] +} diff --git a/hub/test/fixtures/adapters/shopify-hydrogen.json b/hub/test/fixtures/adapters/shopify-hydrogen.json new file mode 100644 index 0000000..60f2dea --- /dev/null +++ b/hub/test/fixtures/adapters/shopify-hydrogen.json @@ -0,0 +1,37 @@ +{ + "adapterId": "shopify-hydrogen", + "mode": "html", + "allowPageKeyTwins": true, + "inputUrl": "https://hydrogen.shop/", + "mockPayload": "Hydrogen Demo Store

Hydrogen Demo Store

", + "expectTitleIncludes": "Hydrogen Demo Store", + "expectMarkdownIncludes": [ + "Shopify Hydrogen", + "The Hydrogen Snowboard", + "USD 699.95", + "Snowboards" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Page Not Found

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

Unexpected Error

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

Down for Maintenance

Hydrogen storefront is under maintenance.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/shopify-storefront-graphql.json b/hub/test/fixtures/adapters/shopify-storefront-graphql.json index c293190..bafe5c3 100644 --- a/hub/test/fixtures/adapters/shopify-storefront-graphql.json +++ b/hub/test/fixtures/adapters/shopify-storefront-graphql.json @@ -20,6 +20,17 @@ "name": "maintenance-or-block", "status": 503, "payload": "Scheduled Maintenance

Service Unavailable

" + }, + { + "name": "graphql-throttled-errors", + "status": 200, + "payload": "{\"errors\":[{\"message\":\"Throttled\"}]}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://henryrose.com/error", + "payload": "404 Page Not Found

Page Not Found

" } ] } diff --git a/hub/test/fixtures/adapters/square-toast-menu.json b/hub/test/fixtures/adapters/square-toast-menu.json new file mode 100644 index 0000000..5615336 --- /dev/null +++ b/hub/test/fixtures/adapters/square-toast-menu.json @@ -0,0 +1,36 @@ +{ + "adapterId": "square-toast-menu", + "mode": "html", + "inputUrl": "https://rinconmx-restaurant.square.site/shop/online-menu/LL5C6YEQHRVCYJVZRVRVY4WR", + "mockPayload": "Online Menu | Rincon MX
", + "expectTitleIncludes": "Online Menu", + "expectMarkdownIncludes": [ + "Rincon MX Restaurant", + "MLR998877", + "Tacos & Bowls" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://rinconmx-restaurant.square.site/error", + "payload": "Page Not Found

Page Not Found

" + }, + { + "name": "cloudflare-challenge-403", + "status": 403, + "finalUrl": "https://order.toasttab.com/online/over-the-counter-3", + "payload": "Just a moment...
Checking your browser
" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/wild-apricot.json b/hub/test/fixtures/adapters/wild-apricot.json new file mode 100644 index 0000000..a32e610 --- /dev/null +++ b/hub/test/fixtures/adapters/wild-apricot.json @@ -0,0 +1,36 @@ +{ + "adapterId": "wild-apricot", + "mode": "html", + "inputUrl": "https://www.ndshp.org/event-6925405", + "mockPayload": "North Dakota Society of Health-System Pharmacists - Dakota Night ASHP Mid-Year Clinical Meeting
Log in

Wrong document context!

Dakota Night ASHP Mid-Year Clinical Meeting

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

Event Details
", + "expectTitleIncludes": "Dakota Night ASHP Mid-Year Clinical Meeting", + "expectMarkdownIncludes": [ + "Wild Apricot", + "Dakota Night ASHP Mid-Year Clinical Meeting", + "Annual clinical networking reception" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 - Page Not Found

Page Not Found

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

Down for Maintenance

Site is temporarily unavailable due to maintenance.

" + }, + { + "name": "login-gated-shell", + "status": 200, + "finalUrl": "https://www.ndshp.org/sys/login", + "payload": "Sign In | NDSHP

Members only. Please sign in to continue.

" + } + ] +} diff --git a/hub/test/wave3-b2-cat-d.ts b/hub/test/wave3-b2-cat-d.ts new file mode 100644 index 0000000..61a23d3 --- /dev/null +++ b/hub/test/wave3-b2-cat-d.ts @@ -0,0 +1,255 @@ +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import { resolve } from 'node:path'; +import test from 'node:test'; +import { KNOWN_TELEMETRY_ADAPTER_IDS } from '../src/dev-telemetry'; +import { validateSingleErrorEvent } from '../../telemetry/src/index'; +import { DECLARATIVE_SITE_ADAPTERS } from '../src/extractors/declarative'; +import { postExtractHtml } from './post-fetch-wasm'; +import { RequestTracer } from '../src/otel'; +import { resetOverflowRobotsCacheForTests } from '../src/overflow'; +import { executeScrapeCall, isTwinRedirectedToErrorPage } from '../src/scrape'; +import { executeExtractCall } from '../src/search-index'; +import { resetIsolateBudgetForTests } from '../src/wasm-bridge'; + +export const WAVE3_B2_CAT_D_IDS = [ + 'schema-recipe', + 'schema-event', + 'schema-localbusiness', + 'schema-vehicle', + 'schema-faq-howto', + 'schema-dataset', + 'schema-software-app', + 'schema-medical', +] as const; + +const noopHtmlToMd = () => ({ markdown: '', links: [] as string[] }); + +export function registerWave3B2CatDTests(): void { + test('Wave 3 B2 Category D: All 8 Universal Schema.org adapters registered with universalEngine, telemetry IDs, and Rule 7 compliance', () => { + const registered = new Map(DECLARATIVE_SITE_ADAPTERS.map((a) => [a.id, a])); + + for (const id of WAVE3_B2_CAT_D_IDS) { + const adapter = registered.get(id); + assert.ok(adapter, `Missing Wave 3 B2 Category D manifest: ${id}`); + assert.equal(adapter.universalEngine, true, `${id} must set universalEngine: true`); + assert.equal(adapter.authMode, 'html', `${id} must use auth_mode: html`); + 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}`, + ); + assert.ok(adapter.exampleUrls.length >= 1, `${id} missing exampleUrls`); + } + + const compileSrc = readFileSync(resolve('scripts', 'compile-manifests.mjs'), 'utf8'); + const crossBlockMatch = /APPROVED_CROSS_DOMAIN_TWIN_HOSTS\s*=\s*Object\.freeze\(\s*new Map\(\[([\s\S]*?)\]\)\s*\)/.exec(compileSrc); + assert.ok(crossBlockMatch); + for (const id of WAVE3_B2_CAT_D_IDS) { + assert.equal(crossBlockMatch[1]!.includes(`'${id}'`), false, `Rule 7 violation: ${id} added to APPROVED_CROSS_DOMAIN_TWIN_HOSTS`); + } + }); + + test('Wave 3 B2 Category D: Precedence & yield rules across reg.universal (FAQ/HowTo->Recipe, LocalBusiness->Product/Commerce, Vehicle VIN, Event host exclusions)', () => { + // 1. schema-faq-howto (`f` < `r`) must yield to schema-recipe on Recipe + FAQPage @graph + const recipeFaqHtml = + 'Cookies

Chocolate Chip Cookies

'; + const recipeOut = postExtractHtml(recipeFaqHtml, 'https://custom-baking.example.org/cookies', ''); + assert.equal(recipeOut?.extractorId, 'schema-recipe'); + + // 2. schema-localbusiness must yield on Product / Shopify.shop so shopify_html claims /products/... + const shopifyLbHtml = + 'Canvas Tote' + + '' + + '

Canvas Tote

'; + const shopifyOut = postExtractHtml(shopifyLbHtml, 'https://demo-shop.example.com/products/canvas-tote', ''); + assert.notEqual(shopifyOut?.extractorId, 'schema-localbusiness'); + assert.notEqual(shopifyOut?.extractorId, 'schema-medical'); + + // 3. schema-vehicle must omit invalid VINs containing I, O, or Q + const badVinHtml = + '2023 Honda Civic

2023 Honda Civic

'; + const vehOut = postExtractHtml(badVinHtml, 'https://auto.example.com/listings/civic-2023', ''); + assert.equal(vehOut?.extractorId, 'schema-vehicle'); + assert.equal(vehOut?.markdown.includes('1HGCM826I3A004352'), false); + assert.equal(Boolean(vehOut?.records?.[0]?.vin), false); + + // 4. schema-event must not match excluded ticketing hosts + const excludedEvHtml = + 'Event

Tech Meetup

'; + const ebOut = postExtractHtml(excludedEvHtml, 'https://www.eventbrite.com/e/tech-meetup-123456', ''); + assert.notEqual(ebOut?.extractorId, 'schema-event'); + }); + + test('Wave 3 B2 Category D: All 8 golden fixtures pass positive, RequestTracer edgefetch.adapter_id, and >=4 negative checks', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + for (const slug of WAVE3_B2_CAT_D_IDS) { + const fx = JSON.parse(readFileSync(resolve('test', 'fixtures', 'adapters', `${slug}.json`), 'utf8')) as { + adapterId: string; + mode: 'html'; + inputUrl: string; + mockPayload: string; + expectTitleIncludes?: string; + expectMarkdownIncludes: string[]; + negativeCases: Array<{ name: string; status?: number; finalUrl?: string; payload: string }>; + }; + assert.equal(fx.adapterId, slug); + assert.ok(fx.negativeCases.length >= 4, `${slug} must have >= 4 negativeCases`); + + const out = postExtractHtml(fx.mockPayload, fx.inputUrl, ''); + assert.ok(out && out.extractorId === slug && out.markdown.trim().length > 0, `${slug}: positive HTML extraction failed`); + 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}"`); + } + + const sTracer = RequestTracer.fromRequest(new Request('https://hub.example.com/v1/scrape')); + let scRes!: Awaited>; + await sTracer.withSpan('edgefetch.scrape', async () => { + scRes = await executeScrapeCall({ + payload: { url: fx.inputUrl, formats: ['markdown', 'records'], discoverLlmsTxt: false, noCache: true }, + env: {}, + tracer: sTracer, + 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: fx.inputUrl, outcome: 'ok', status: 200, contentType: 'text/html', body: fx.mockPayload }], + }), + }; + }, + }); + }); + assert.equal(scRes.status, 200, `${slug} scrape failed`); + assert.equal(scRes.body.extractorId, slug); + assert.equal(scRes.body.contentState, 'active'); + assert.equal(sTracer.getRecordedSpans().find((s) => s.name === 'edgefetch.scrape')?.attributes?.['edgefetch.adapter_id'], slug); + + const eTracer = RequestTracer.fromRequest(new Request('https://hub.example.com/v1/extract')); + let exRes!: Awaited>; + await eTracer.withSpan('edgefetch.extract', async () => { + exRes = await executeExtractCall({ + payload: { urls: [fx.inputUrl], noCache: true }, + env: {}, + tracer: eTracer, + 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: fx.inputUrl, outcome: 'ok', status: 200, contentType: 'text/html', body: fx.mockPayload }], + }), + }; + }, + }); + }); + assert.equal(exRes.status, 200, `${slug} extract failed`); + assert.equal(eTracer.getRecordedSpans().find((s) => s.name === 'edgefetch.extract')?.attributes?.['edgefetch.adapter_id'], slug); + + for (const nc of fx.negativeCases) { + const ncStatus = nc.status ?? 200; + const ncFinal = nc.finalUrl || fx.inputUrl; + if (nc.finalUrl && nc.finalUrl !== fx.inputUrl) { + const isErrRedirect = isTwinRedirectedToErrorPage(fx.inputUrl, { finalUrl: nc.finalUrl }); + const negOut = postExtractHtml(nc.payload, nc.finalUrl, ''); + assert.ok(isErrRedirect || negOut === null, `${slug}:${nc.name} redirect/negative HTML must not match`); + } else { + const negOut = postExtractHtml(nc.payload, fx.inputUrl, ''); + assert.equal(negOut, null, `${slug}:${nc.name} must return null`); + } + + const hubMock = async (_target: unknown, body: string) => { + 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 ?? 'neg-cat-d', + url: req?.url ?? fx.inputUrl, + finalUrl: ncFinal, + outcome: 'ok', + status: ncStatus, + contentType: 'text/html', + 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`, + ); + } + } + }); +} diff --git a/hub/test/wave3-b2-cat-e.ts b/hub/test/wave3-b2-cat-e.ts new file mode 100644 index 0000000..b43ef06 --- /dev/null +++ b/hub/test/wave3-b2-cat-e.ts @@ -0,0 +1,315 @@ +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import { resolve } from 'node:path'; +import test from 'node:test'; +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, isTrustedTwinRedirectUrl, isTwinRedirectedToErrorPage } from '../src/scrape'; +import { executeExtractCall } from '../src/search-index'; +import { resetIsolateBudgetForTests } from '../src/wasm-bridge'; + +export const WAVE3_B2_CAT_E_IDS = [ + 'chambermaster-growthzone', + 'wild-apricot', + 'association-ams-pack', + 'runsignup', + 'bikereg-usacycling', + 'race-results-pack', + 'lemmy', + 'peertube', + 'fediverse-pack', +] as const; + +interface CommunityFixture { + 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[] }); + +export function registerWave3B2CatETests(): void { + test('Wave 3 B2 Category E: All 9 Community adapter IDs registered with commerce-social category, telemetry IDs, and Rule 7 compliance', () => { + const registered = new Map(DECLARATIVE_SITE_ADAPTERS.map((a) => [a.id, a])); + + for (const id of WAVE3_B2_CAT_E_IDS) { + const adapter = registered.get(id); + assert.ok(adapter, `Missing Wave 3 B2 Category E manifest: ${id}`); + assert.equal(adapter.category, 'commerce-social', `${id} must use category: commerce-social`); + assert.notEqual(adapter.authMode, 'detect-only', `${id} must not 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, + `Collector validateSingleErrorEvent rejected adapterId: ${id}`, + ); + assert.ok(adapter.exampleUrls.length >= 1, `${id} missing exampleUrls`); + } + + for (const uniId of ['chambermaster-growthzone', 'wild-apricot', 'association-ams-pack', 'lemmy', 'peertube', 'fediverse-pack']) { + assert.equal(registered.get(uniId)?.universalEngine, true, `${uniId} must set universalEngine: true`); + } + + // Rule 7: Zero additions to APPROVED_CROSS_DOMAIN_TWIN_HOSTS + const compileSrc = readFileSync(resolve('scripts', 'compile-manifests.mjs'), 'utf8'); + const crossBlockMatch = /APPROVED_CROSS_DOMAIN_TWIN_HOSTS\s*=\s*Object\.freeze\(\s*new Map\(\[([\s\S]*?)\]\)\s*\)/.exec(compileSrc); + assert.ok(crossBlockMatch); + for (const id of WAVE3_B2_CAT_E_IDS) { + assert.equal(crossBlockMatch[1]!.includes(`'${id}'`), false, `Rule 7 violation: ${id} added to APPROVED_CROSS_DOMAIN_TWIN_HOSTS`); + } + }); + + test('Wave 3 B2 Category E: All 9 golden fixtures pass positive, RequestTracer edgefetch.adapter_id, and >=4 negative checks', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + for (const slug of WAVE3_B2_CAT_E_IDS) { + const fx = JSON.parse(readFileSync(resolve('test', 'fixtures', 'adapters', `${slug}.json`), 'utf8')) as CommunityFixture; + 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 || twin.id.startsWith(`${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}"`); + } + for (const nc of fx.negativeCases) { + const ncInput = nc.inputUrl || fx.inputUrl; + if (nc.finalUrl && nc.finalUrl !== ncInput) { + assert.equal( + isTrustedTwinRedirectUrl(slug, fx.expectedFetchUrl || ncInput, { finalUrl: nc.finalUrl }), + false, + `${slug}:${nc.name} redirect to ${nc.finalUrl} must be rejected`, + ); + } else { + const ncTwin = resolveSiteExtractorTwin(ncInput); + const neg = ncTwin ? ncTwin.formatTwin(nc.payload, ncInput, noopHtmlToMd) : null; + assert.equal(Boolean(neg && neg.markdown.trim()), false, `${slug}:${nc.name} must return null/empty`); + } + } + } else { + const out = postExtractHtml(fx.mockPayload, fx.inputUrl, ''); + assert.ok(out && out.extractorId === slug && out.markdown.trim().length > 0, `${slug}: positive HTML extraction failed`); + 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}"`); + } + for (const nc of fx.negativeCases) { + const ncInput = nc.inputUrl || fx.inputUrl; + if (nc.finalUrl && nc.finalUrl !== ncInput) { + const isErrRedirect = isTwinRedirectedToErrorPage(ncInput, { finalUrl: nc.finalUrl }); + const negOut = postExtractHtml(nc.payload, nc.finalUrl, ''); + assert.ok(isErrRedirect || negOut === null, `${slug}:${nc.name} redirect/negative HTML must not be active`); + } else { + const negOut = postExtractHtml(nc.payload, ncInput, ''); + assert.equal(negOut, null, `${slug}:${nc.name} must return null`); + } + } + } + + // End-to-end RequestTracer edgefetch.adapter_id & negative contentState checks + const fetchUrl = fx.expectedFetchUrl || fx.inputUrl; + const contentType = fx.mode === 'twin' ? 'application/json' : 'text/html'; + + const sTracer = RequestTracer.fromRequest(new Request('https://hub.example.com/v1/scrape')); + await sTracer.withSpan('edgefetch.scrape', async () => { + const res = await executeScrapeCall({ + payload: { url: fx.inputUrl, discoverLlmsTxt: false, noCache: true }, + env: {}, + tracer: sTracer, + 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: fetchUrl, outcome: 'ok', status: 200, contentType, body: fx.mockPayload }], + }), + }; + }, + }); + assert.equal(res.status, 200, `${slug} scrape failed`); + assert.equal(res.body.extractorId, slug, `${slug} scrape extractorId mismatch`); + }); + assert.equal( + sTracer.getRecordedSpans().find((s) => s.name === 'edgefetch.scrape')?.attributes?.['edgefetch.adapter_id'], + slug, + ); + + const eTracer = RequestTracer.fromRequest(new Request('https://hub.example.com/v1/extract')); + await eTracer.withSpan('edgefetch.extract', async () => { + const res = await executeExtractCall({ + payload: { urls: [fx.inputUrl], noCache: true }, + env: {}, + tracer: eTracer, + 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: fetchUrl, outcome: 'ok', status: 200, contentType, body: fx.mockPayload }], + }), + }; + }, + }); + assert.equal(res.status, 200, `${slug} extract failed`); + }); + assert.equal( + eTracer.getRecordedSpans().find((s) => s.name === 'edgefetch.extract')?.attributes?.['edgefetch.adapter_id'], + slug, + ); + + for (const nc of fx.negativeCases) { + const ncInput = nc.inputUrl || fx.inputUrl; + const ncStatus = nc.status ?? 200; + const ncFinal = nc.finalUrl || (nc.inputUrl ? ncInput : fetchUrl); + const itemCt = nc.payload.trimStart().startsWith('<') ? 'text/html' : contentType; + 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-cat-e', + url: req?.url ?? ncInput, + finalUrl: ncFinal, + outcome: 'ok', + status: ncStatus, + contentType: itemCt, + body: nc.payload, + }, + ], + }), + }; + }; + + const scNeg = await executeScrapeCall({ + payload: { url: ncInput, 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: [ncInput], 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 B2 Category E: Twin route resolution, POST bodies, Sport80 Inertia, Lemmy/PeerTube universal routes, and negative shell guards', () => { + // 1. #245 RunSignup HTML SportsEvent fallback + const rsHtml = + 'Bacon & Bubbles 5K' + + '' + + '

Bacon & Bubbles 5K

'; + const rsOut = postExtractHtml(rsHtml, 'https://runsignup.com/Race/MI/PortHuron/BaconandBubbles5k1Mile', ''); + assert.equal(rsOut?.extractorId, 'runsignup'); + + // 2. #246 USA Cycling Sport80 Inertia FindEventsPage & ResultsPage + CF challenge rejection + const s80Html = + 'Events
'; + const s80Out = postExtractHtml(s80Html, 'https://usacycling.sport80.com/pub/e_locator/events/find?from_date=today', ''); + assert.equal(s80Out?.extractorId, 'bikereg-usacycling'); + assert.ok(s80Out?.markdown.includes('Sunshine State Criterium')); + + const cfOut = postExtractHtml('Just a moment...
', 'https://www.bikereg.com/', ''); + assert.equal(cfOut, null); + + // 3. #248 Lemmy universalEngine routes & reserved segment exclusion + const lemCommTwin = resolveSiteExtractorTwin('https://programming.dev/c/rust'); + assert.ok(lemCommTwin && lemCommTwin.id === 'lemmy'); + assert.equal(lemCommTwin.fetchUrl, 'https://programming.dev/api/v3/community?name=rust'); + assert.equal(resolveSiteExtractorTwin('https://lemmy.world/c/login'), null); + assert.equal(resolveSiteExtractorTwin('https://lemmy.world/c/api'), null); + + // 4. #249 PeerTube universalEngine /w/ & /videos/watch/ & /captions routes + const ptWatch = resolveSiteExtractorTwin('https://tilvids.com/videos/watch/6PsLUGoGiV9isoaHmht6Eu'); + assert.ok(ptWatch && ptWatch.id === 'peertube'); + assert.equal(ptWatch.fetchUrl, 'https://tilvids.com/api/v1/videos/6PsLUGoGiV9isoaHmht6Eu'); + + // 5. #250 Fediverse Pack: Misskey POST twin + Kbin/Mbin ActivityPub header + Anubis rejection + const mkTwin = resolveSiteExtractorTwin('https://misskey.io/notes/au4n1wud00cl0t3s'); + assert.ok(mkTwin && mkTwin.id === 'fediverse-pack'); + assert.equal(mkTwin.method, 'POST'); + assert.equal(mkTwin.fetchUrl, 'https://misskey.io/api/notes/show'); + assert.equal(mkTwin.requestBody, '{"noteId":"au4n1wud00cl0t3s"}'); + + const kbinTwin = resolveSiteExtractorTwin('https://kbin.earth/m/news@lemmy.world/t/3423982/sample'); + assert.ok(kbinTwin && kbinTwin.id === 'fediverse-pack'); + assert.equal(kbinTwin.accept, 'application/activity+json'); + + const anubisOut = postExtractHtml( + 'Making sure you're not a bot!

Making sure you're not a bot!

', + 'https://gehirneimer.de/', + '', + + ); + assert.equal(anubisOut, null); + }); +} diff --git a/hub/test/wave3-b2-cat-fgh.ts b/hub/test/wave3-b2-cat-fgh.ts new file mode 100644 index 0000000..3e925c6 --- /dev/null +++ b/hub/test/wave3-b2-cat-fgh.ts @@ -0,0 +1,281 @@ +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 { RequestTracer } 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'; + +export const WAVE3_B2_CAT_FGH_IDS = [ + 'appfolio-listings', + 'pm-listing-widgets', + 'multifamily-portals', + 'idx-broker-showcase', + 'popmenu', + 'bentobox', + 'square-toast-menu', + 'schema-menu', + 'q4-ir', + 'ir-portal-pack', + 'company-newsrooms', +] as const; + +const noopHtmlToMd = () => ({ markdown: '', links: [] as string[] }); + +export function registerWave3B2CatFGHTests(): void { + test('Wave 3 B2 Categories F/G/H: All 11 adapters registered without detect-only stubs, PSL violations, or Rule 7 violations', () => { + const registered = new Map(DECLARATIVE_SITE_ADAPTERS.map((a) => [a.id, a])); + + for (const id of WAVE3_B2_CAT_FGH_IDS) { + const adapter = registered.get(id); + assert.ok(adapter, `Missing Wave 3 B2 Cat F/G/H manifest: ${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, + `Collector validateSingleErrorEvent rejected adapterId: ${id}`, + ); + assert.ok(adapter.exampleUrls.length >= 1, `${id} missing exampleUrls`); + } + + // #251 appfolio-listings: strict_robots + min_interval_ms >= 10000 + max_concurrent: 1 + const afPolicy = resolveAdapterPolicyForUrl('https://lapmg.appfolio.com/listings'); + assert.equal(afPolicy.strictRobots, true); + assert.ok((afPolicy.minIntervalMs ?? 0) >= 10000); + assert.equal(afPolicy.maxConcurrent, 1); + + // #253 multifamily-portals: strict_robots (honors Disallow: /*.ashx) + const mfPolicy = resolveAdapterPolicyForUrl('https://www.canvasatmidlothian.com/'); + assert.equal(mfPolicy.strictRobots, true); + + // #257 square-toast-menu: claims order.toasttab.com (never toasttab.com / *.toasttab.com / *.square.site) + const sqToast = registered.get('square-toast-menu')!; + assert.equal(sqToast.universalEngine, true); + assert.ok(sqToast.domains.includes('order.toasttab.com')); + assert.equal(sqToast.domains.includes('toasttab.com'), false); + assert.equal(sqToast.domains.includes('www.toasttab.com'), false); + assert.equal(sqToast.domains.includes('*.toasttab.com'), false); + assert.equal(sqToast.domains.includes('*.square.site'), false); + + // dining-reservations retains www.toasttab.com without collision + const dining = registered.get('dining-reservations')!; + assert.ok(dining.domains.includes('www.toasttab.com')); + + // Rule 7: Zero additions to APPROVED_CROSS_DOMAIN_TWIN_HOSTS + const compileSrc = readFileSync(resolve('scripts', 'compile-manifests.mjs'), 'utf8'); + const crossBlockMatch = /APPROVED_CROSS_DOMAIN_TWIN_HOSTS\s*=\s*Object\.freeze\(\s*new Map\(\[([\s\S]*?)\]\)\s*\)/.exec(compileSrc); + assert.ok(crossBlockMatch); + for (const id of WAVE3_B2_CAT_FGH_IDS) { + assert.equal(crossBlockMatch[1]!.includes(`'${id}'`), false, `Rule 7 violation: ${id} added to APPROVED_CROSS_DOMAIN_TWIN_HOSTS`); + } + }); + + test('Wave 3 B2 Categories F/G/H: square-online yields on Square restaurant verticals and schema-menu does not hijack plain Restaurant', () => { + // 1. Arbitrary unclaimed *.square.site restaurant menu resolves to square-toast-menu (not square-online) + const sqRestaurantHtml = + 'Online Menu | Arbitrary Bistro' + + '
' + + ''; + const sqMenuOut = postExtractHtml(sqRestaurantHtml, 'https://arbitrary-bistro.square.site/shop/online-menu/ABC123', ''); + assert.equal(sqMenuOut?.extractorId, 'square-toast-menu'); + + // 2. Non-restaurant Square Online storefront still resolves to square-online + const sqRetailHtml = + 'Gelato' + + '
' + + ''; + const sqRetailOut = postExtractHtml(sqRetailHtml, 'https://www.pessosices.com/product/ice-cream-gelato/92', ''); + assert.equal(sqRetailOut?.extractorId, 'square-online'); + + // 3. #258 schema-menu yields on plain Restaurant JSON-LD without Menu/MenuSection/MenuItem/hasMenu + const plainRestaurantHtml = + 'Tartine Bakery

Tartine

'; + const plainOut = postExtractHtml(plainRestaurantHtml, 'https://tartinebakery.com/', ''); + assert.notEqual(plainOut?.extractorId, 'schema-menu'); + }); + + test('Wave 3 B2 Categories F/G/H: All 11 golden fixtures pass positive, negative, and RequestTracer scrape/extract checks', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + for (const slug of WAVE3_B2_CAT_FGH_IDS) { + const fx = JSON.parse(readFileSync(resolve('test', 'fixtures', 'adapters', `${slug}.json`), 'utf8')) as { + 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 }>; + }; + 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 || twin.id.startsWith(`${slug}-`)), `${slug}: expected twin for ${fx.inputUrl}`); + if (fx.expectedFetchUrl) { + assert.equal(twin.fetchUrl, fx.expectedFetchUrl, `${slug}: fetchUrl mismatch`); + } + const out = twin.formatTwin(fx.mockPayload, fx.inputUrl, noopHtmlToMd); + assert.ok(out && out.markdown.trim().length > 0, `${slug}: positive formatTwin returned null/empty`); + for (const needle of fx.expectMarkdownIncludes) { + assert.ok(out.markdown.includes(needle), `${slug}: markdown missing "${needle}"`); + } + 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 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 out = postExtractHtml(fx.mockPayload, fx.inputUrl, ''); + assert.ok(out && out.extractorId === slug && out.markdown.trim().length > 0, `${slug}: positive HTML extraction failed`); + for (const needle of fx.expectMarkdownIncludes) { + assert.ok(out.markdown.includes(needle), `${slug}: markdown missing "${needle}"`); + } + for (const nc of fx.negativeCases) { + if (nc.finalUrl && nc.finalUrl !== fx.inputUrl) { + const isErrRedirect = isTwinRedirectedToErrorPage(fx.inputUrl, { finalUrl: nc.finalUrl }); + const negOut = postExtractHtml(nc.payload, nc.finalUrl, ''); + assert.ok(isErrRedirect || negOut === null, `${slug}:${nc.name} redirect/negative HTML must not be active`); + } else { + const negOut = postExtractHtml(nc.payload, fx.inputUrl, ''); + assert.equal(negOut, null, `${slug}:${nc.name} must return null`); + } + } + } + + // End-to-end scrape & extract RequestTracer + non-active negative contentState checks + const fetchUrl = fx.expectedFetchUrl || fx.inputUrl; + const contentType = fx.mode === 'twin' ? (slug === 'q4-ir' ? 'application/json' : 'application/rss+xml') : 'text/html'; + + const sTracer = RequestTracer.fromRequest(new Request('https://hub.example.com/v1/scrape')); + await sTracer.withSpan('edgefetch.scrape', async () => { + const res = await executeScrapeCall({ + payload: { url: fx.inputUrl, discoverLlmsTxt: false, noCache: true }, + env: {}, + tracer: sTracer, + 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: fetchUrl, outcome: 'ok', status: 200, contentType, body: fx.mockPayload }], + }), + }; + }, + }); + assert.equal(res.status, 200, `${slug} scrape failed`); + assert.equal(res.body.extractorId, slug, `${slug} scrape extractorId mismatch`); + }); + assert.equal( + sTracer.getRecordedSpans().find((s) => s.name === 'edgefetch.scrape')?.attributes?.['edgefetch.adapter_id'], + slug, + ); + + const eTracer = RequestTracer.fromRequest(new Request('https://hub.example.com/v1/extract')); + await eTracer.withSpan('edgefetch.extract', async () => { + const res = await executeExtractCall({ + payload: { urls: [fx.inputUrl], noCache: true }, + env: {}, + tracer: eTracer, + 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: fetchUrl, outcome: 'ok', status: 200, contentType, body: fx.mockPayload }], + }), + }; + }, + }); + assert.equal(res.status, 200, `${slug} extract failed`); + }); + assert.equal( + eTracer.getRecordedSpans().find((s) => s.name === 'edgefetch.extract')?.attributes?.['edgefetch.adapter_id'], + slug, + ); + + for (const nc of fx.negativeCases) { + const ncStatus = nc.status ?? 200; + const ncFinal = nc.finalUrl || fetchUrl; + const itemCt = nc.payload.trimStart().startsWith('<') ? 'text/html' : contentType; + 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-cat-fgh', + url: req?.url ?? fx.inputUrl, + finalUrl: ncFinal, + outcome: 'ok', + status: ncStatus, + contentType: itemCt, + 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`, + ); + } + } + }); +} diff --git a/hub/test/wave3-b2-cat-i.ts b/hub/test/wave3-b2-cat-i.ts new file mode 100644 index 0000000..44837eb --- /dev/null +++ b/hub/test/wave3-b2-cat-i.ts @@ -0,0 +1,316 @@ +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 { discoverPlatformCompanionTwin } 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 { resetIsolateBudgetForTests } from '../src/wasm-bridge'; + +export const WAVE3_B2_CAT_I_IDS = [ + 'shopify-storefront-graphql', + 'shopify-hydrogen', + 'recharge-bold-subscriptions', + 'shopify-filter-apps', + 'rebuy-searchanise', + 'aftership-tracking-page', + 'branded-tracking-pack', + 'gorgias-reamaze', + 'klaviyo-attentive-forms', +] as const; + +const noopHtmlToMd = () => ({ markdown: '', links: [] as string[] }); + +export function registerWave3B2CatITests(): void { + test('Wave 3 B2 Category I: All 9 Store Add-Ons registered in manifests and telemetry allowlists with Rule 7 & strict_robots compliance', () => { + const registered = new Map(DECLARATIVE_SITE_ADAPTERS.map((a) => [a.id, a])); + + for (const id of WAVE3_B2_CAT_I_IDS) { + const adapter = registered.get(id); + assert.ok(adapter, `Missing Wave 3 B2 Cat I manifest: ${id}`); + assert.equal(adapter.category, 'commerce-social', `${id} must use category: commerce-social`); + 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, + `Collector validateSingleErrorEvent rejected adapterId: ${id}`, + ); + assert.ok(adapter.exampleUrls.length >= 1, `${id} missing exampleUrls`); + } + + // Rule 7: Zero additions to APPROVED_CROSS_DOMAIN_TWIN_HOSTS + const compileSrc = readFileSync(resolve('scripts', 'compile-manifests.mjs'), 'utf8'); + const crossBlockMatch = /APPROVED_CROSS_DOMAIN_TWIN_HOSTS\s*=\s*Object\.freeze\(\s*new Map\(\[([\s\S]*?)\]\)\s*\)/.exec(compileSrc); + assert.ok(crossBlockMatch); + for (const id of WAVE3_B2_CAT_I_IDS) { + assert.equal(crossBlockMatch[1]!.includes(`'${id}'`), false, `Rule 7 violation: ${id} added to APPROVED_CROSS_DOMAIN_TWIN_HOSTS`); + } + + // #267 aftership-tracking-page strict_robots: true mandatory + const aftershipPolicy = resolveAdapterPolicyForUrl('https://nealsyardremedies.aftership.com/'); + assert.equal(aftershipPolicy.strictRobots, true, 'aftership-tracking-page must enforce strict_robots: true'); + }); + + test('Wave 3 B2 Category I: page-key default ON + explicit opt-out and alphabetical non-preemption of shopify_html', () => { + // 1. #262 shopify-storefront-graphql companion twin discovery (same-origin ch == ph, page-key gate) + const gqlHtml = + 'The Layering Collection' + + '' + + '

The Layering Collection

'; + const twinOff = discoverPlatformCompanionTwin({ + rawHtml: gqlHtml, + pageUrl: 'https://www.henryrose.com/products/the-layering-collection', + allowPageKeyTwins: false, + }); + assert.equal(twinOff.matched, false, 'shopify-storefront-graphql must honor allowPageKeyTwins: false'); + + const twinDefault = discoverPlatformCompanionTwin({ + rawHtml: gqlHtml, + pageUrl: 'https://www.henryrose.com/products/the-layering-collection', + }); + assert.equal(twinDefault.matched, true); + assert.equal(twinDefault.adapterId, 'shopify-storefront-graphql'); + assert.equal(twinDefault.fetchUrl, 'https://www.henryrose.com/api/2024-10/graphql.json'); + assert.equal(twinDefault.requiresPageKeyOptIn, true); + + // 2. Tokenless #262 Storefront API route + direct page-key route twins (#265, #266) default ON & opt-out false + const sfPubTwin = resolveSiteExtractorTwin('https://henryrose.com/api/2025-07/graphql.json?handle=the-layering-collection'); + assert.ok(sfPubTwin && sfPubTwin.id === 'shopify-storefront-graphql'); + const pageKeyRouteUrls = [ + 'https://services.mybcapps.com/bc-sf-filter/filter?shop=get-casely.myshopify.com&page=1&limit=5', + 'https://www.searchserverapi.com/getresults?apiKey=1Q7P8A7s4h&q=&output=json&maxResults=3', + ]; + for (const u of pageKeyRouteUrls) { + assert.ok(resolveSiteExtractorTwin(u), `page-key twin should default ON for ${u}`); + assert.equal(resolveSiteExtractorTwin(u, { allowPageKeyTwins: false }), null, `page-key twin should honor false opt-out for ${u}`); + } + + // 3. Alphabetical non-preemption: shopify PDP with Klaviyo & dormant Recharge must resolve to shopify, NOT Cat I add-ons + const shopifyPdpHtml = + 'The Layering Collection | Henry Rose' + + '' + + '' + + '' + + '

The Layering Collection

'; + const pdpOut = postExtractHtml( + shopifyPdpHtml, + 'https://www.henryrose.com/products/the-layering-collection', + '', + + ); + assert.equal(pdpOut?.extractorId, 'shopify', 'Category I add-ons must NEVER preempt shopify_html on normal PDPs'); + + // 4. #268 branded-tracking-pack must reject 1KB Route empty CSR shell + const routeEmptyShell = + 'Route Tracking' + + '
'; + assert.equal( + postExtractHtml(routeEmptyShell, 'https://tracking.route.com/', ''), + null, + 'Route 1KB empty CSR shell must return null', + ); + + // 5. #263 shopify-hydrogen must NOT match plain non-Shopify Remix apps + const plainRemixHtml = + 'Plain Remix Blog

Plain Remix Blog

'; + assert.equal( + postExtractHtml(plainRemixHtml, 'https://plain-remix.example.com/', ''), + null, + 'Plain non-Shopify Remix app must not match shopify-hydrogen', + ); + }); + + test('Wave 3 B2 Category I: All 9 golden fixtures pass positive & >=4 negative checks (direct + end-to-end)', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + for (const slug of WAVE3_B2_CAT_I_IDS) { + const fx = JSON.parse(readFileSync(resolve('test', 'fixtures', 'adapters', `${slug}.json`), 'utf8')) as { + adapterId: string; + mode: 'twin' | 'html'; + allowPageKeyTwins?: boolean; + inputUrl: string; + expectedFetchUrl?: string; + mockPayload: string; + expectTitleIncludes?: string; + expectMarkdownIncludes: string[]; + negativeCases: Array<{ name: string; status?: number; finalUrl?: string; payload: string }>; + }; + 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, { allowPageKeyTwins: fx.allowPageKeyTwins ?? true }); + assert.ok(twin && (twin.id === slug || twin.id.startsWith(`${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}"`); + } + 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 out = postExtractHtml(fx.mockPayload, fx.inputUrl, ''); + assert.ok(out && out.extractorId === slug && out.markdown.trim().length > 0, `${slug}: positive HTML extraction failed`); + 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}"`); + } + for (const nc of fx.negativeCases) { + if (nc.finalUrl && nc.finalUrl !== fx.inputUrl) { + const isErrRedirect = isTwinRedirectedToErrorPage(fx.inputUrl, { finalUrl: nc.finalUrl }); + const negOut = postExtractHtml(nc.payload, nc.finalUrl, ''); + assert.ok(isErrRedirect || negOut === null, `${slug}:${nc.name} redirect/negative HTML must not be active`); + } else { + const negOut = postExtractHtml(nc.payload, fx.inputUrl, ''); + assert.equal(negOut, null, `${slug}:${nc.name} must return null`); + } + } + } + + const fetchUrl = fx.expectedFetchUrl || fx.inputUrl; + const contentType = fx.mode === 'twin' ? 'application/json' : 'text/html'; + + const sTracer = RequestTracer.fromRequest(new Request('https://hub.example.com/v1/scrape')); + await sTracer.withSpan('edgefetch.scrape', async () => { + const res = await executeScrapeCall({ + payload: { url: fx.inputUrl, discoverLlmsTxt: false, noCache: true, ...(fx.allowPageKeyTwins !== undefined ? { allowPageKeyTwins: fx.allowPageKeyTwins } : {}) }, + env: {}, + tracer: sTracer, + 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: fetchUrl, outcome: 'ok', status: 200, contentType, body: fx.mockPayload }], + }), + }; + }, + }); + assert.equal(res.status, 200, `${slug} scrape failed`); + assert.equal(res.body.extractorId, slug, `${slug} extractorId mismatch`); + for (const needle of fx.expectMarkdownIncludes) { + assert.ok(String(res.body.markdown).includes(needle), `${slug} scrape markdown missing "${needle}"`); + } + }); + assert.equal( + sTracer.getRecordedSpans().find((s) => s.name === 'edgefetch.scrape')?.attributes?.['edgefetch.adapter_id'], + slug, + ); + + const eTracer = RequestTracer.fromRequest(new Request('https://hub.example.com/v1/extract')); + await eTracer.withSpan('edgefetch.extract', async () => { + const res = await executeExtractCall({ + payload: { urls: [fx.inputUrl], noCache: true, ...(fx.allowPageKeyTwins !== undefined ? { allowPageKeyTwins: fx.allowPageKeyTwins } : {}) }, + env: {}, + tracer: eTracer, + 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: fetchUrl, outcome: 'ok', status: 200, contentType, body: fx.mockPayload }], + }), + }; + }, + }); + assert.equal(res.status, 200, `${slug} extract failed`); + }); + assert.equal( + eTracer.getRecordedSpans().find((s) => s.name === 'edgefetch.extract')?.attributes?.['edgefetch.adapter_id'], + slug, + ); + + for (const nc of fx.negativeCases) { + const ncStatus = nc.status ?? 200; + const ncFinal = nc.finalUrl || fetchUrl; + const itemCt = nc.payload.trimStart().startsWith('<') ? 'text/html' : contentType; + 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-cat-i', + url: req?.url ?? fx.inputUrl, + finalUrl: ncFinal, + outcome: 'ok', + status: ncStatus, + contentType: itemCt, + body: nc.payload, + }, + ], + }), + }; + }; + + const scNeg = await executeScrapeCall({ + payload: { url: fx.inputUrl, discoverLlmsTxt: false, noCache: true, ...(fx.allowPageKeyTwins !== undefined ? { allowPageKeyTwins: fx.allowPageKeyTwins } : {}) }, + 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, ...(fx.allowPageKeyTwins !== undefined ? { allowPageKeyTwins: fx.allowPageKeyTwins } : {}) }, + 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`, + ); + } + } + }); +} diff --git a/hub/test/wave3-b2-schema-community-store.test.ts b/hub/test/wave3-b2-schema-community-store.test.ts new file mode 100644 index 0000000..14ef430 --- /dev/null +++ b/hub/test/wave3-b2-schema-community-store.test.ts @@ -0,0 +1,290 @@ +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import { resolve } from 'node:path'; +import test from 'node:test'; +import { KNOWN_TELEMETRY_ADAPTER_IDS } from '../src/dev-telemetry'; +import { validateSingleErrorEvent } from '../../telemetry/src/index'; +import { resolveSiteExtractorTwin } from '../src/extractors/registry'; +import { postExtractHtml } from './post-fetch-wasm'; +import { classifyContentState } from '../src/waf'; +import { callCoreWasmRaw } from '../src/wasm-bridge'; +import { registerWave3B2CatDTests, WAVE3_B2_CAT_D_IDS } from './wave3-b2-cat-d'; +import { registerWave3B2CatETests, WAVE3_B2_CAT_E_IDS } from './wave3-b2-cat-e'; +import { registerWave3B2CatFGHTests, WAVE3_B2_CAT_FGH_IDS } from './wave3-b2-cat-fgh'; +import { registerWave3B2CatITests, WAVE3_B2_CAT_I_IDS } from './wave3-b2-cat-i'; + +registerWave3B2CatDTests(); +registerWave3B2CatETests(); +registerWave3B2CatFGHTests(); +registerWave3B2CatITests(); + +const noopHtmlToMd = () => ({ markdown: '', links: [] as string[] }); + +test('Wave 3 B2 Integration: All 37 adapter telemetry IDs and cross-category alphabetical precedence invariants', () => { + const allB2Ids = [ + ...WAVE3_B2_CAT_D_IDS, + ...WAVE3_B2_CAT_E_IDS, + ...WAVE3_B2_CAT_FGH_IDS, + ...WAVE3_B2_CAT_I_IDS, + ]; + assert.equal(allB2Ids.length, 37, 'Batch B2 must cover all 37 adapters (#234-#270)'); + + for (const id of allB2Ids) { + assert.ok(KNOWN_TELEMETRY_ADAPTER_IDS.has(id), `Missing KNOWN_TELEMETRY_ADAPTER_IDS: ${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: ${id}`, + ); + } + + // 1. Cross-category precedence: schema-faq-howto (`f`) yields to schema-recipe (`r`) on Recipe + FAQPage @graph + const recipeFaqHtml = + 'Grandma Pie

Grandma Apple Pie

'; + const recipeOut = postExtractHtml(recipeFaqHtml, 'https://baking.example.org/apple-pie', ''); + assert.equal(recipeOut?.extractorId, 'schema-recipe'); + + // 2. Cross-category precedence: schema-localbusiness yields to shopify on Shopify store with LocalBusiness + Product JSON-LD + const shopifyLbHtml = + 'Roast Beans' + + '

Single Origin Roast

'; + const shopLbOut = postExtractHtml(shopifyLbHtml, 'https://cityroasters.example.com/products/single-origin', ''); + assert.notEqual(shopLbOut?.extractorId, 'schema-localbusiness'); + + // 3. Cross-category precedence: square-online yields on Square restaurant vertical -> square-toast-menu, keeps retail -> square-online + const sqRestHtml = + 'Online Menu
' + + ''; + assert.equal( + postExtractHtml(sqRestHtml, 'https://cornertaco.square.site/shop/online-menu/TACOS', '')?.extractorId, + 'square-toast-menu', + ); + const sqRetailHtml = + 'Ceramic Mug
' + + ''; + assert.equal( + postExtractHtml(sqRetailHtml, 'https://www.ceramics.example.com/product/ceramic-mug/12', '')?.extractorId, + 'square-online', + ); + + // 4. Cross-category precedence: klaviyo-attentive-forms (`k`) yields to shopify (`s`) on normal PDP with Klaviyo script + const klaviyoPdpHtml = + 'Trail Pack' + + '' + + '' + + '' + + '

Trail Pack

'; + assert.equal( + postExtractHtml(klaviyoPdpHtml, 'https://gear.example.com/products/trail-pack', '')?.extractorId, + 'shopify', + ); +}); + +test('Wave 3 B2 Remediation: All 10 Reviewer & Challenger fixes, 2.37MB latency < 75ms, and JSON/RSS formatters', () => { + // 1-5. Reviewer reg.universal non-hijack probes + const decisionArticle = + 'Making a Decision

Making a Decision

Engineering decision with precision.

'; + assert.notEqual(postExtractHtml(decisionArticle, 'https://blog.example.org/decision', '')?.extractorId, 'company-newsrooms'); + + const corpPress = + 'Acme CorporationPress Releases

About Acme Corporation.

'; + assert.notEqual(postExtractHtml(corpPress, 'https://acme.example.com/about', '')?.extractorId, 'ir-portal-pack'); + + const standaloneRealtor = + 'Entity Realty

Entity Realty

'; + assert.equal(postExtractHtml(standaloneRealtor, 'https://realtor.example.com/', '')?.extractorId, 'schema-localbusiness'); + + const personifyArticle = + 'Poetic Devices

Writers personify nature to evoke emotion.

  • Metaphor
'; + assert.notEqual(postExtractHtml(personifyArticle, 'https://lit.example.org/devices', '')?.extractorId, 'association-ams-pack'); + + const gzPage = + 'Archive

Compressed tar.gz archives.

  • tar.gz
'; + assert.notEqual(postExtractHtml(gzPage, 'https://tools.example.org/tar-gz-info', '')?.extractorId, 'chambermaster-growthzone'); + + const gridEventPage = + 'Grid Events

Handle validevent and avoidevent callbacks.

  • onClick
'; + assert.notEqual(postExtractHtml(gridEventPage, 'https://ui.example.org/events', '')?.extractorId, 'wild-apricot'); + + // 6. schema-localbusiness yields to schema-menu on Restaurant + hasMenu / Menu + const restHasMenu = + 'Bistro Foo

Bistro Foo

'; + assert.equal(postExtractHtml(restHasMenu, 'https://bistrofoo.example.com/menu', '')?.extractorId, 'schema-menu'); + + const restGraphMenu = + 'Bistro Bar

Bistro Bar

'; + assert.equal(postExtractHtml(restGraphMenu, 'https://bistrobar.example.com/menu', '')?.extractorId, 'schema-menu'); + + // 7. schema-dataset / schema-software-app / schema-vehicle yield to Shopify; ["Product","Car"] dealership VDP works + for (const extra of [ + { '@type': 'Dataset', name: 'Size Chart' }, + { '@type': 'SoftwareApplication', name: 'App' }, + { '@type': 'Vehicle', name: 'Rack Fitment', vehicleIdentificationNumber: '1HGCM82633A004352' }, + ]) { + const shopHtml = + 'Item

Item

'; + assert.equal(postExtractHtml(shopHtml, 'https://demo.example.com/products/item', '')?.extractorId, 'shopify'); + } + const dealerVdp = + '2024 Honda Accord

2024 Honda Accord

'; + assert.equal(postExtractHtml(dealerVdp, 'https://www.hondaofseattle.com/vdp/accord', '')?.extractorId, 'schema-vehicle'); + + // 9. klaviyo-attentive-forms & recharge-bold-subscriptions preemption fixes + const wooKlaviyo = + 'Trail Boots' + + '' + + '

Trail Boots

'; + assert.equal(postExtractHtml(wooKlaviyo, 'https://woo.example.com/shop/trail-boots/', '')?.extractorId, 'woocommerce'); + + const shopCustomPathKlaviyo = + 'Trail Boots

Trail Boots

'; + assert.notEqual(postExtractHtml(shopCustomPathKlaviyo, 'https://shop.example.com/gear/trail-boots', '')?.extractorId, 'klaviyo-attentive-forms'); + const shopArrayProdKlaviyo = + 'Trail Boots

Trail Boots

'; + assert.equal(postExtractHtml(shopArrayProdKlaviyo, 'https://shop.example.com/products/trail-boots', '')?.extractorId, 'shopify'); + + const rechargeZeroPlansProse = + 'Single Origin

Single Origin

Subscribe and save 10% on our newsletter!

'; + assert.equal(postExtractHtml(rechargeZeroPlansProse, 'https://coffee.example.com/products/single-origin', '')?.extractorId, 'shopify'); + + // 8. 2.37 MB WASM single-adapter latency budget (< 75ms) + const pad237 = '

Storefront catalog description block for layout sizing.

'.repeat(40_500); + const bigKlaviyo = `Casely
Sign up
${pad237}`; + const bigRecharge = `Coffee

Coffee

${pad237}`; + const bigBranded = `Track

Tracking portal.

${pad237}`; + const bigAftership = `Track

AfterShip order lookup.

${pad237}`; + assert.ok(bigKlaviyo.length >= 2_300_000, 'payload should be ~2.37 MB'); + + // Warm up reactor once + callCoreWasmRaw('manifest_extract_html', { mode: 'klaviyo_attentive_forms_html', baseUrl: 'https://www.getcasely.com/', extractorId: 'klaviyo-attentive-forms' }, 'warmup'); + for (const [mode, extractorId, html] of [ + ['klaviyo_attentive_forms_html', 'klaviyo-attentive-forms', bigKlaviyo], + ['recharge_bold_subscriptions_html', 'recharge-bold-subscriptions', bigRecharge], + ['branded_tracking_pack_html', 'branded-tracking-pack', bigBranded], + ['aftership_tracking_html', 'aftership-tracking-page', bigAftership], + ] as const) { + const t0 = performance.now(); + callCoreWasmRaw('manifest_extract_html', { mode, baseUrl: 'https://example.com/', extractorId }, html); + const dt = performance.now() - t0; + assert.ok(dt < 75, `${mode} on 2.37MB HTML took ${dt.toFixed(2)}ms (>= 75ms budget)`); + } + + // 10. BikeReg ASP.NET date bounds + HTTP 200 Cloudflare / Anubis negative shells + const brTwin = resolveSiteExtractorTwin('https://www.bikereg.com/api/search?name=Gravel'); + assert.ok(brTwin); + for (const badDate of [ + '/Date(1751328000000+9999)/', + '/Date(1751328000000-0499)/', + '/Date(999999999999999)/', + '/Date(-62135596800000)/', + '/Date(-86400000)/', + '/Date(2524608000000)/', + ]) { + const out = brTwin.formatTwin(JSON.stringify({ MatchingEvents: [{ EventId: 1, EventName: 'Gravel Race', EventDate: badDate }] }), 'https://www.bikereg.com/api/search?name=Gravel', noopHtmlToMd); + assert.ok(out); + assert.equal(out.records?.[0]?.eventDate, undefined, `invalid ASP.NET date ${badDate} must be omitted`); + } + + const cf200 = classifyContentState({ + status: 200, + url: 'https://protected.example.com/', + title: 'Just a moment...', + rawHtml: 'Just a moment...

Enable JavaScript and cookies to continue

', + markdown: 'Enable JavaScript and cookies to continue', + }); + assert.notEqual(cf200.state, 'active'); + + const anubis45w = 'Making sure you're not a bot! Please wait while your browser solves a brief proof-of-work verification challenge before accessing this site. JavaScript is required to complete Anubis verification and proceed to the requested community repository page automatically.'; + const anubis200 = classifyContentState({ + status: 200, + url: 'https://git.example.org/', + title: "Making sure you're not a bot!", + rawHtml: `Making sure you're not a bot!

${anubis45w}

`, + markdown: anubis45w, + }); + assert.notEqual(anubis200.state, 'active'); + + // Formatter coverage for remaining B2 JSON/RSS formatters + const rsTwin = resolveSiteExtractorTwin('https://runsignup.com/Rest/race/68640?format=json'); + assert.ok(rsTwin?.formatTwin('{"race":{"race_id":68640,"name":"Test 5K","next_date":"06/12/2027"}}', 'https://runsignup.com/Rest/race/68640?format=json', noopHtmlToMd)?.markdown.includes('Test 5K')); + assert.equal(rsTwin?.formatTwin('{"error":{"error_msg":"not found"}}', 'https://runsignup.com/Rest/race/68640?format=json', noopHtmlToMd), null); + + const lemTwin = resolveSiteExtractorTwin('https://lemmy.world/post/123'); + assert.ok(lemTwin?.formatTwin('{"post_view":{"post":{"id":123,"name":"Hello Lemmy","body":"Post text"},"creator":{"name":"alice"},"community":{"name":"tech"},"counts":{"score":5,"comments":1}}}', 'https://lemmy.world/post/123', noopHtmlToMd)?.markdown.includes('Hello Lemmy')); + assert.equal(lemTwin?.formatTwin('{"error":"couldnt_find_post"}', 'https://lemmy.world/post/123', noopHtmlToMd), null); + + const ptTwin = resolveSiteExtractorTwin('https://video.blender.org/w/v3kudnbEWnLVG5Fzormny6'); + assert.ok(ptTwin?.formatTwin('{"id":1,"name":"Blender Stream","duration":120,"channel":{"displayName":"Blender"}}', 'https://video.blender.org/w/v3kudnbEWnLVG5Fzormny6', noopHtmlToMd)?.markdown.includes('Blender Stream')); + + const fedTwin = resolveSiteExtractorTwin('https://misskey.io/notes/au4n1wud00cl0t3s'); + assert.ok(fedTwin?.formatTwin('{"id":"au4n1wud00cl0t3s","user":{"username":"bob","name":"Bob"},"text":"Hello Misskey"}', 'https://misskey.io/notes/au4n1wud00cl0t3s', noopHtmlToMd)?.markdown.includes('Hello Misskey')); + + const irRssTwin = resolveSiteExtractorTwin('https://ir.bowheadspecialty.com/news-events/press-releases/rss'); + assert.ok(irRssTwin?.formatTwin('IRQ3 Resultshttps://ir.bowheadspecialty.com/news/1', 'https://ir.bowheadspecialty.com/news-events/press-releases/rss', noopHtmlToMd)?.markdown.includes('Q3 Results')); + + const cnRssTwin = resolveSiteExtractorTwin('https://residence.prowly.com/rss'); + assert.ok(cnRssTwin?.formatTwin('NewsLaunchhttps://residence.prowly.com/1', 'https://residence.prowly.com/rss', noopHtmlToMd)?.markdown.includes('Launch')); + + const rebuyTwin = resolveSiteExtractorTwin('https://www.searchserverapi.com/getresults?apiKey=1Q7P8A7s4h&q=&output=json'); + assert.ok(rebuyTwin?.formatTwin('{"totalItems":1,"items":[{"product_id":"1","title":"Widget","price":"9.99"}]}', 'https://www.searchserverapi.com/getresults?apiKey=1Q7P8A7s4h&q=&output=json', noopHtmlToMd)?.markdown.includes('Widget')); +}); diff --git a/internal/catalog/wave2b_commerce.go b/internal/catalog/wave2b_commerce.go index 280182a..aceb907 100644 --- a/internal/catalog/wave2b_commerce.go +++ b/internal/catalog/wave2b_commerce.go @@ -2087,6 +2087,15 @@ func extractSquareOnlineHTML(rawURL, rawHTML, slice string) *PostFetchSiteResult if !hasMarker { return nil } + // Yield Square restaurant / online-menu verticals to #257 square-toast-menu (`square_toast_menu_html`). + if strings.Contains(rawHTML, `"selectedVertical":"restaurant"`) || + strings.Contains(rawHTML, `"selectedVertical": "restaurant"`) || + strings.Contains(rawHTML, `"quick-serve-restaurant"`) || + strings.Contains(rawHTML, "/shop/online-menu/") || + strings.Contains(rawURL, "/shop/online-menu/") || + strings.Contains(rawHTML, `"Online Menu"`) { + return nil + } if res := extractGenericCommerceProductHTML(rawURL, rawHTML, "square-online"); res != nil { return res } diff --git a/internal/classify/content_state.go b/internal/classify/content_state.go index 37a7e9e..2924a6e 100644 --- a/internal/classify/content_state.go +++ b/internal/classify/content_state.go @@ -965,7 +965,7 @@ func ClassifyWAFAndChallengeFull(in WAFChallengeInput) *WAFMatch { } if strings.Contains(scrubbedLower, "checking your browser before accessing ") || strings.Contains(scrubbedLower, "please wait while we check your browser") || - (strings.Contains(scrubbedLower, "making sure you're not a bot") && strings.Contains(scrubbedLower, "anubis")) { + hasAnubisPoWMarkersCSGo(strings.ToLower(reScrubDomBlocksCSGo.ReplaceAllString(noComments, " "))) { return &WAFMatch{ Vendor: "generic", Category: "challenge", @@ -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)(?:/.*|\.(?:html?|aspx?|php|jsp))?/?$`) + reRedirectErrorPathCS = newLazyRegexp(`(?i)^/(?:[a-z]{2}(?:-[a-z]{2})?/)?(?:error|errors|404(?:-page)?|not-found|page-not-found(?:-sub)?)(?:/.*|\.(?:html?|aspx?|php|jsp))?/?$`) ) // ClassifyContentStateFull evaluates ContentStateInput with full ATS silent-redirect, validThrough expiry, and rendered-iframe awareness. @@ -1988,6 +1988,58 @@ func isAccelaEmptyShellCSGo(finalURL, rawHTML, title string) bool { return true } +func hasAnubisPoWMarkersCSGo(lowerBody string) bool { + if lowerBody == "" { + return false + } + hasPhrase := strings.Contains(lowerBody, "making sure you're not a bot") || + strings.Contains(lowerBody, "making sure you're not a bot") || + strings.Contains(lowerBody, "making sure you're not a bot") + hasScriptOrAsset := strings.Contains(lowerBody, `id="anubis_version"`) || + strings.Contains(lowerBody, `id='anubis_version'`) || + strings.Contains(lowerBody, `id="anubis_challenge"`) || + strings.Contains(lowerBody, `id='anubis_challenge'`) || + strings.Contains(lowerBody, "/.within.website/x/xess/") + if hasPhrase && (strings.Contains(lowerBody, "anubis") || hasScriptOrAsset) { + return true + } + return hasScriptOrAsset && strings.Contains(lowerBody, "/.within.website/x/xess/") && + (strings.Contains(lowerBody, `id="anubis_version"`) || strings.Contains(lowerBody, `id='anubis_version'`) || + strings.Contains(lowerBody, `id="anubis_challenge"`) || strings.Contains(lowerBody, `id='anubis_challenge'`)) +} + +func isChamberMasterEmptyMnContentCSGo(rawHTML string) bool { + if !hasDivWithClassSubstrCSGo(rawHTML, "mn-content") { + return false + } + return !hasNonEmptyElementMatchingCSGo(rawHTML, func(tagLower, attrs string) bool { + if tagLower != "div" { + return false + } + cls := strings.ToLower(readSimpleTagAttrCSGo(attrs, "class")) + for _, tok := range strings.Fields(cls) { + if tok == "mn-content" { + return true + } + } + return false + }) +} + +func isWildApricotLoginOnlyShellCSGo(rawHTML string) bool { + lowRaw := strings.ToLower(capStringBytesUTF8CSGo(rawHTML, maxHTMLScanCharsCSGo)) + if !strings.Contains(lowRaw, "wagadgetloginbutton") { + return false + } + if strings.Contains(lowRaw, "wagadgetevents") || + strings.Contains(lowRaw, "wagadgetupcomingevents") || + strings.Contains(lowRaw, "wagadgetmemberdirectory") || + strings.Contains(lowRaw, "wagadgetcontent") { + return false + } + return true +} + func isStatusIOErrorJSONBody(raw string) bool { trimmed := strings.TrimSpace(raw) if !strings.HasPrefix(trimmed, "{") { @@ -2251,6 +2303,10 @@ func isAPIErrorJSONShellCSGo(raw string) bool { if s, ok := v.(string); ok && strings.TrimSpace(s) != "" { 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")) { + hasErr = true + } if reNotFoundBodyCSGo.MatchString(s) || strings.Contains(ls, "not found") || strings.Contains(ls, "does not exist") || @@ -2333,6 +2389,7 @@ func isEmptyJSONResponseShellCSGo(raw string) bool { lk == "recdata" || lk == "idgroup" || lk == "features" || lk == "docs" || lk == "entries" || lk == "feeds" || lk == "products" || lk == "itemsummaries" || lk == "playlist" || lk == "media" || lk == "searchresult" || lk == "searchresultitems" || + lk == "getpressreleaselistresult" || lk == "geteventlistresult" || lk == "_embedded" _, isEmptySlice := val.([]any) isEmptyArrVal := isEmptySlice && len(val.([]any)) == 0 @@ -2455,6 +2512,20 @@ func ClassifyContentState(status int, rawHTML, markdown, finalURL, title string) } } lowPath := strings.ToLower(finU.Path) + if strings.Contains(lowPath, "/page-not-found-sub") && !hasRichSchemaJSONLDCSGo(capStringBytesUTF8CSGo(rawHTML, maxHTMLScanCharsCSGo)) { + return ContentStateResult{ + State: "soft_404", + Reason: "AppFolio /page-not-found-sub redirect target is a soft-404 page.", + Confidence: 0.95, + } + } + if strings.HasSuffix(strings.TrimRight(lowPath, "/"), "/sys/login") && !hasRichSchemaJSONLDCSGo(capStringBytesUTF8CSGo(rawHTML, maxHTMLScanCharsCSGo)) { + return ContentStateResult{ + State: "login_wall", + Reason: "Wild Apricot /sys/login authentication wall.", + Confidence: 0.92, + } + } if strings.Contains(lowPath, "/datalet.aspx") || strings.Contains(lowPath, "/commonsearch.aspx") { lowRawShell := strings.ToLower(rawHTML) if strings.Contains(lowPath, "/datalet.aspx") && @@ -2544,7 +2615,7 @@ func ClassifyContentState(status int, rawHTML, markdown, finalURL, title string) // 2. Soft-404 check (unambiguous 404/not-found even with >= 120 words of nav chrome, OR HTTP 2xx/404/410 with compact < 120-word body & 404/not-found title/H1 or < 60-word not-found body) if (status >= 200 && status < 300) || status == 404 || status == 410 { trimmedTitle := strings.TrimSpace(title) - if trimmedTitle != "" && reUnambiguousErrorTitleCSGo.MatchString(trimmedTitle) { + if trimmedTitle != "" && (reUnambiguousErrorTitleCSGo.MatchString(trimmedTitle) || strings.EqualFold(trimmedTitle, "Page not found | AppFolio")) { return ContentStateResult{ State: "soft_404", Reason: "HTTP " + strconv.Itoa(status) + " response has an unambiguous 404/Not Found <title>.", @@ -2552,10 +2623,10 @@ func ClassifyContentState(status int, rawHTML, markdown, finalURL, title string) } } } - if ((status >= 200 && status < 300) || status == 401 || status == 404 || status == 410 || (status >= 500 && status <= 599)) && words < 120 { + if ((status >= 200 && status < 300) || status == 400 || status == 401 || status == 403 || status == 404 || status == 410 || (status >= 500 && status <= 599)) && words < 120 { if rawHTML != "" && (isAPIErrorJSONShellCSGo(rawHTML) || isXMLShortErrorShellCSGo(rawHTML) || isStatusIOErrorJSONBody(rawHTML)) { errState := "soft_404" - if status >= 500 { + if status >= 500 || status == 403 { errState = "temporarily_unavailable" } return ContentStateResult{ @@ -2621,6 +2692,34 @@ func ClassifyContentState(status int, rawHTML, markdown, finalURL, title string) } } } + if ((status >= 200 && status < 300) || status == 403 || status == 429 || status == 445) && rawHTML != "" && words < 120 && + !hasRichSchemaJSONLDCSGo(capStringBytesUTF8CSGo(rawHTML, maxHTMLScanCharsCSGo)) { + anubisCandidate := strings.ToLower(reScrubDomBlocksCSGo.ReplaceAllString(capStringBytesUTF8CSGo(rawHTML, 65_536), " ")) + if hasAnubisPoWMarkersCSGo(anubisCandidate) { + return ContentStateResult{ + State: "temporarily_unavailable", + Reason: "Anubis proof-of-work anti-bot challenge interstitial.", + Confidence: 0.92, + } + } + } + if status >= 200 && status < 300 && rawHTML != "" && words < 40 && + reCloudflareTitleFullCSGo.MatchString(strings.TrimSpace(title)) && + !hasRichSchemaJSONLDCSGo(capStringBytesUTF8CSGo(rawHTML, maxHTMLScanCharsCSGo)) { + lowCF := strings.ToLower(reScrubDomBlocksCSGo.ReplaceAllString(capStringBytesUTF8CSGo(rawHTML, 65_536), " ")) + if strings.Contains(lowCF, "enable javascript and cookies to continue") || + strings.Contains(lowCF, "challenges.cloudflare.com/turnstile") || + strings.Contains(lowCF, "cf-turnstile") || + strings.Contains(lowCF, "_cf_chl_opt") || + strings.Contains(lowCF, "challenge-platform") || + strings.Contains(lowCF, "checking your browser") { + return ContentStateResult{ + State: "temporarily_unavailable", + Reason: "HTTP " + strconv.Itoa(status) + " response is a Cloudflare challenge interstitial.", + 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 { @@ -2720,7 +2819,7 @@ func ClassifyContentState(status int, rawHTML, markdown, finalURL, title string) visLoginText := html.UnescapeString(stripTagsQuoteAwareCSGo(capStringBytesUTF8CSGo(cleanVisibleHTML, 32_768), 32_768)) hasLoginGateCopy = reLoginGateCopyCSGo.MatchString(visLoginText) } - hasBodyOrModalPassword := hasPasswordInput && (words < 65 || hasLoginGateHeading || hasNonHeaderPasswordInputCSGo(cleanVisibleHTML) || indexFoldASCIICSGo(cleanVisibleHTML, "mets-field") >= 0) + hasBodyOrModalPassword := hasPasswordInput && (words < 65 || hasLoginGateHeading || (hasNonHeaderPasswordInputCSGo(cleanVisibleHTML) && (indexFoldASCIICSGo(cleanVisibleHTML, "mets-field") >= 0 || hasDivWithClassSubstrCSGo(cleanVisibleHTML, "loginwindow")))) if hasLoginGateCopy || hasBodyOrModalPassword || (hasLoginGateHeading && words < 20 && (cleanVisibleHTML == "" || countWordsFromHTMLCSGo(cleanVisibleHTML) < 25) && !hasRichSchemaJSONLDCSGo(capStringBytesUTF8CSGo(rawHTML, maxHTMLScanCharsCSGo))) { return ContentStateResult{ @@ -2730,6 +2829,15 @@ func ClassifyContentState(status int, rawHTML, markdown, finalURL, title string) } } } + if (status < 400 || status == 401) && rawHTML != "" && words < 40 && + !hasRichSchemaJSONLDCSGo(capStringBytesUTF8CSGo(rawHTML, maxHTMLScanCharsCSGo)) && + isWildApricotLoginOnlyShellCSGo(rawHTML) { + return ContentStateResult{ + State: "login_wall", + Reason: "Wild Apricot login-only gadget shell without public member or event content.", + Confidence: 0.90, + } + } if status == 403 && words < 40 && !hasRichSchemaJSONLDCSGo(capStringBytesUTF8CSGo(rawHTML, maxHTMLScanCharsCSGo)) && (cleanVisibleHTML == "" || countWordsFromHTMLCSGo(cleanVisibleHTML) < 40) { @@ -2814,8 +2922,34 @@ func ClassifyContentState(status int, rawHTML, markdown, finalURL, title string) } } } + if words < 30 { + lowRawRoute := strings.ToLower(capStringBytesUTF8CSGo(rawHTML, maxHTMLScanCharsCSGo)) + if strings.EqualFold(strings.TrimSpace(title), "Route Tracking") && + (strings.Contains(lowRawRoute, `id="root"`) || strings.Contains(lowRawRoute, `id='root'`)) && + !strings.Contains(lowRawRoute, "trackingnumber") && + !strings.Contains(lowRawRoute, "tracking_number") && + !strings.Contains(lowRawRoute, "checkpoints") && + !strings.Contains(lowRawRoute, "trackingstatus") && + !strings.Contains(lowRawRoute, "deliverystatus") && + !strings.Contains(lowRawRoute, "ordernumber") && + !strings.Contains(lowRawRoute, "order_number") && + !strings.Contains(lowRawRoute, "courierslug") && + countWordsFromHTMLCSGo(cleanVisibleHTML) < 30 { + return ContentStateResult{ + State: "empty_shell", + Reason: "Unrendered Route Tracking CSR shell without hydrated tracking or order payload.", + Confidence: 0.90, + } + } + } if words < 20 { lowRaw := strings.ToLower(capStringBytesUTF8CSGo(rawHTML, maxHTMLScanCharsCSGo)) + boundedRawHTML := capStringBytesUTF8CSGo(rawHTML, maxHTMLScanCharsCSGo) + hasRichLD := hasRichSchemaJSONLDCSGo(boundedRawHTML) + hasMetaFrag := (strings.Contains(lowRaw, `name="fragment"`) || strings.Contains(lowRaw, `name='fragment'`)) && + (strings.Contains(lowRaw, `content="!"`) || strings.Contains(lowRaw, `content='!'`)) + hasNotPrerender := strings.Contains(lowRaw, "isnotprerender=!1") + hasEmptyChamberMn := isChamberMasterEmptyMnContentCSGo(boundedRawHTML) if words == 0 && strings.Contains(lowRaw, "_incapsula_resource") && strings.Contains(lowRaw, "incapsula incident id") { return ContentStateResult{ State: "temporarily_unavailable", @@ -2866,7 +3000,9 @@ func ClassifyContentState(status int, rawHTML, markdown, finalURL, title string) strings.Contains(lowRaw, `<div class="layout"></div>`) || strings.Contains(lowRaw, `<div class='layout'></div>`) || ((strings.Contains(lowRaw, `class="layout"`) || strings.Contains(lowRaw, `class='layout'`)) && strings.Contains(lowRaw, `<script`)) || - (strings.Contains(lowRaw, `<noscript`) && strings.Contains(lowRaw, `javascript`)) + (strings.Contains(lowRaw, `<noscript`) && strings.Contains(lowRaw, `javascript`)) || + ((hasMetaFrag || hasNotPrerender) && !hasRichLD && !strings.Contains(lowRaw, "<table") && !strings.Contains(lowRaw, "<article")) || + hasEmptyChamberMn if hasSpaMarker { if countWordsFromHTMLCSGo(cleanVisibleHTML) < 15 { return ContentStateResult{ diff --git a/internal/classify/content_state_test.go b/internal/classify/content_state_test.go index 14cdbcb..8e2461f 100644 --- a/internal/classify/content_state_test.go +++ b/internal/classify/content_state_test.go @@ -367,3 +367,105 @@ func TestClassifyContentStateWave3B1Remediations(t *testing.T) { t.Fatalf("generic 80w header-only password page got %q (%s), want active", got.State, got.Reason) } } + +func TestClassifyContentStateWave3B2NegativeShells(t *testing.T) { + // 1. Anubis PoW: encoded apostrophe ' / ' + id="anubis_version" / id="anubis_challenge" / /.within.website/x/xess/ + anubisRaw := `<!doctype html><html><head><title>Making sure you're not a bot!

Making sure you're not a bot!

` + if wm := ClassifyWAFAndChallengeFull(WAFChallengeInput{Status: 445, RawHTML: anubisRaw}); wm == nil || wm.Category != "challenge" { + t.Fatalf("Anubis PoW encoded ' WAF check got %+v, want challenge", wm) + } + if cs := ClassifyContentStateFull(ContentStateInput{Status: 445, URL: "https://gehirneimer.de/", RawHTML: anubisRaw, Markdown: ""}); cs.State != "temporarily_unavailable" { + t.Fatalf("Anubis PoW 445 ContentState got %q (%s), want temporarily_unavailable", cs.State, cs.Reason) + } + anubisHex := `Making sure you're not a bot!

Making sure you're not a bot!

` + if wm := ClassifyWAFAndChallengeFull(WAFChallengeInput{Status: 200, RawHTML: anubisHex}); wm == nil || wm.Category != "challenge" { + t.Fatalf("Anubis PoW ' 200 WAF check got %+v, want challenge", wm) + } + + // 2. CSR SPA shells: / isNotPrerender=!1 + thin body, and Route Tracking 1KB shell + athlinksShell := `Athlinks
` + if cs := ClassifyContentStateFull(ContentStateInput{Status: 200, URL: "https://www.athlinks.com/event/382820", RawHTML: athlinksShell, Markdown: ""}); cs.State != "empty_shell" { + t.Fatalf("Athlinks CSR meta fragment shell got %q (%s), want empty_shell", cs.State, cs.Reason) + } + routeShell := `Route Tracking
` + if cs := ClassifyContentStateFull(ContentStateInput{Status: 200, URL: "https://tracking.route.com/", Title: "Route Tracking", RawHTML: routeShell, Markdown: ""}); cs.State != "empty_shell" { + t.Fatalf("Route Tracking 1KB empty CSR shell got %q (%s), want empty_shell", cs.State, cs.Reason) + } + + // 3. AppFolio /page-not-found-sub soft 404 (both redirect and title) + appFolio404HTML := `Page not found | AppFolio

Page not found

The page you requested could not be found.

` + if cs := ClassifyContentStateFull(ContentStateInput{ + Status: 200, + URL: "https://lapmg.appfolio.com/listings/detail/missing", + FinalURL: "https://www.appfolio.com/page-not-found-sub", + RawHTML: appFolio404HTML, + Markdown: "Page not found", + }); cs.State != "soft_404" { + t.Fatalf("AppFolio /page-not-found-sub got %q (%s), want soft_404", cs.State, cs.Reason) + } + + // 4. Empty JSON containers & error JSON shells: Q4 GetPressReleaseListResult / GetEventListResult, Boost 403, GraphQL errors, Searchanise invalid key + for _, tc := range []struct { + name string + status int + body string + }{ + {"q4-press-empty", 200, `{"GetPressReleaseListResult":[]}`}, + {"q4-event-empty", 200, `{"GetEventListResult":[]}`}, + {"boost-403", 403, `{"message":"403 Forbidden: "}`}, + {"graphql-error", 401, `{"errors":[{"message":"Unauthorized storefront access token"}],"data":{}}`}, + {"searchanise-error", 400, `{"error":"Invalid API key"}`}, + } { + if cs := ClassifyContentStateFull(ContentStateInput{Status: tc.status, URL: "https://api.example.com/feed", RawHTML: tc.body, Markdown: ""}); cs.State == "active" { + t.Fatalf("%s must not classify as active (got %q)", tc.name, cs.State) + } + } + + // 5. ChamberMaster empty mn-content & Wild Apricot /sys/login / WaGadgetLoginButton-only shells + cmEmpty := `Directory
` + if cs := ClassifyContentStateFull(ContentStateInput{Status: 200, URL: "https://chamber.example.org/list/", RawHTML: cmEmpty, Markdown: ""}); cs.State != "empty_shell" { + t.Fatalf("ChamberMaster empty mn-content got %q (%s), want empty_shell", cs.State, cs.Reason) + } + waLoginOnly := `Members` + if cs := ClassifyContentStateFull(ContentStateInput{Status: 200, URL: "https://club.wildapricot.org/sys/login", FinalURL: "https://club.wildapricot.org/sys/login", RawHTML: waLoginOnly, Markdown: "Member Login"}); cs.State != "login_wall" { + t.Fatalf("Wild Apricot /sys/login got %q (%s), want login_wall", cs.State, cs.Reason) + } + // Positive control: Wild Apricot with public WaGadgetEvents stays active + waPublic := `Annual Conference

Annual Conference

Full agenda and speaker lineup for the statewide association conference in June.

` + if cs := ClassifyContentStateFull(ContentStateInput{ + Status: 200, + URL: "https://www.ndshp.org/event-6925405", + FinalURL: "https://www.ndshp.org/event-6925405", + Title: "Annual Conference", + RawHTML: waPublic, + Markdown: "# Annual Conference\n\nFull agenda and speaker lineup for the statewide association conference in June.", + }); cs.State != "active" { + t.Fatalf("Wild Apricot public WaGadgetEvents got %q (%s), want active", cs.State, cs.Reason) + } + + // 6. Finding 10: HTTP 200 Cloudflare "Just a moment..." + challenge copy (<40w) and Anubis PoW (45w, <120w) -> temporarily_unavailable + cf200 := `Just a moment...

Enable JavaScript and cookies to continue

` + if cs := ClassifyContentStateFull(ContentStateInput{ + Status: 200, + URL: "https://protected.example.com/", + FinalURL: "https://protected.example.com/", + Title: "Just a moment...", + RawHTML: cf200, + Markdown: "Enable JavaScript and cookies to continue", + }); cs.State != "temporarily_unavailable" { + t.Fatalf("HTTP 200 Cloudflare Just a moment... got %q (%s), want temporarily_unavailable", cs.State, cs.Reason) + } + + anubis45wBody := "Making sure you're not a bot! Please wait while your browser solves a brief proof-of-work verification challenge before accessing this site. JavaScript is required to complete Anubis verification and proceed to the requested community repository page automatically." + anubis45wHTML := `Making sure you're not a bot!

` + anubis45wBody + `

` + if cs := ClassifyContentStateFull(ContentStateInput{ + Status: 200, + URL: "https://git.example.org/", + FinalURL: "https://git.example.org/", + Title: "Making sure you're not a bot!", + RawHTML: anubis45wHTML, + Markdown: anubis45wBody, + }); cs.State != "temporarily_unavailable" { + t.Fatalf("HTTP 200 Anubis PoW (45w) got %q (%s), want temporarily_unavailable", cs.State, cs.Reason) + } +} diff --git a/internal/extract/declarative.go b/internal/extract/declarative.go index 3801eb0..86cc27b 100644 --- a/internal/extract/declarative.go +++ b/internal/extract/declarative.go @@ -912,6 +912,31 @@ var approvedWildcardDomainPatternsGo = map[string]bool{ "*.freshteam.com": true, "*.homerun.co": true, "*.healthcaresource.com": true, + // Wave 3 B2 Category E + "*.chambermaster.com": true, + "*.growthzoneapp.com": true, + "*.wildapricot.org": true, + "*.memberclicks.net": true, + "*.site-ym.com": true, + // Wave 3 B2 Categories F/G/H + "*.appfolio.com": true, + "*.managebuilding.com": true, + "*.propertyware.com": true, + "*.rentmanager.com": true, + "*.rentcafe.com": true, + "*.entrata.com": true, + "*.realpage.com": true, + "*.idxbroker.com": true, + "*.popmenu.com": true, + "*.getbento.com": true, + "*.q4web.com": true, + "*.prowly.com": true, + "*.prezly.com": true, + // Wave 3 B2 Category I + "*.aftership.com": true, + "*.narvar.com": true, + "*.gorgias.help": true, + "*.reamaze.com": true, } var reservedCoreATSDomainsGo = map[string]bool{ @@ -4964,6 +4989,9 @@ func (m *DeclarativeTwinMatch) formatTextTwin(rawBody string) (*DeclarativeForma if IsWave3GovTextMode(ext.TextMode) { return FormatWave3GovTextDoc(ext.TextMode, rawBody, m.params, m.origURL) } + if IsWave3PropRestIRTextMode(ext.TextMode) { + return FormatWave3PropRestIRTextDoc(ext.TextMode, rawBody, m.params, m.origURL) + } if ext.JSONSource == "inertia_data_page" { jsonBytes, ok := extractInertiaDataPageBytesGo(rawBody) if !ok { @@ -5774,6 +5802,15 @@ func (m *DeclarativeTwinMatch) formatJSONBytesTwin(rawBytes []byte, ext Declarat if IsWave3JobsPublicJSONMode(ext.JSONMode) { return FormatWave3JobsPublicJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) } + if IsWave3CommunityJSONMode(ext.JSONMode) { + return FormatWave3CommunityJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) + } + if IsWave3PropRestIRJSONMode(ext.JSONMode) { + return FormatWave3PropRestIRJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) + } + if IsWave3StoreAddonsJSONMode(ext.JSONMode) { + return FormatWave3StoreAddonsJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) + } var rootObj map[string]any var selectiveCache *selectiveJSONCache unwrappedArray := false diff --git a/internal/extract/manifests/aftership-tracking-page.yaml b/internal/extract/manifests/aftership-tracking-page.yaml new file mode 100644 index 0000000..12d394a --- /dev/null +++ b/internal/extract/manifests/aftership-tracking-page.yaml @@ -0,0 +1,20 @@ +# Shared Go + TypeScript Declarative Site Adapter: AfterShip Tracking Page (#267) +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 diff --git a/internal/extract/manifests/appfolio-listings.yaml b/internal/extract/manifests/appfolio-listings.yaml new file mode 100644 index 0000000..c3663f3 --- /dev/null +++ b/internal/extract/manifests/appfolio-listings.yaml @@ -0,0 +1,20 @@ +# Shared Go + TypeScript Declarative Site Adapter: AppFolio Listings (#251) +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 diff --git a/internal/extract/manifests/association-ams-pack.yaml b/internal/extract/manifests/association-ams-pack.yaml new file mode 100644 index 0000000..48e9672 --- /dev/null +++ b/internal/extract/manifests/association-ams-pack.yaml @@ -0,0 +1,21 @@ +# Shared Go + TypeScript Declarative Site Adapter: Association AMS Pack (#244) +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 diff --git a/internal/extract/manifests/bentobox.yaml b/internal/extract/manifests/bentobox.yaml new file mode 100644 index 0000000..7ffa310 --- /dev/null +++ b/internal/extract/manifests/bentobox.yaml @@ -0,0 +1,23 @@ +# Shared Go + TypeScript Declarative Site Adapter: BentoBox (#256) +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 diff --git a/internal/extract/manifests/bikereg-usacycling.yaml b/internal/extract/manifests/bikereg-usacycling.yaml new file mode 100644 index 0000000..f9e7c06 --- /dev/null +++ b/internal/extract/manifests/bikereg-usacycling.yaml @@ -0,0 +1,46 @@ +# Shared Go + TypeScript Declarative Site Adapter: BikeReg & USA Cycling (#246) +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 diff --git a/internal/extract/manifests/branded-tracking-pack.yaml b/internal/extract/manifests/branded-tracking-pack.yaml new file mode 100644 index 0000000..19dd6d1 --- /dev/null +++ b/internal/extract/manifests/branded-tracking-pack.yaml @@ -0,0 +1,19 @@ +# Shared Go + TypeScript Declarative Site Adapter: Branded Tracking Pack (#268) +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 diff --git a/internal/extract/manifests/chambermaster-growthzone.yaml b/internal/extract/manifests/chambermaster-growthzone.yaml index 7744348..851f0b9 100644 --- a/internal/extract/manifests/chambermaster-growthzone.yaml +++ b/internal/extract/manifests/chambermaster-growthzone.yaml @@ -2,9 +2,12 @@ id: chambermaster-growthzone name: ChamberMaster / GrowthZone Chamber Directories category: commerce-social -description: "Universal extractor for chamber-of-commerce member directories hosted on ChamberMaster / GrowthZone (/list/ category and search pages, /list/member/ detail pages): member name, address, phone, website, hours, categories, and description." +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 @@ -12,10 +15,10 @@ 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: - pathPrefix: /list exactSegments: false mode: chambermaster_html diff --git a/internal/extract/manifests/company-newsrooms.yaml b/internal/extract/manifests/company-newsrooms.yaml new file mode 100644 index 0000000..5fc48b8 --- /dev/null +++ b/internal/extract/manifests/company-newsrooms.yaml @@ -0,0 +1,46 @@ +# Shared Go + TypeScript Declarative Site Adapter: Company Newsrooms (#261) +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 diff --git a/internal/extract/manifests/compiled.json b/internal/extract/manifests/compiled.json index 42a2192..00bffe9 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":"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":"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":"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":"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":"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":"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 hosted on ChamberMaster / GrowthZone (/list/ category and search pages, /list/member/ detail pages): member name, address, phone, website, hours, categories, and description.","domains":["business.fortworthchamber.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"],"htmlRoutes":[{"id":"chambermaster-growthzone","match":{"pathPrefix":"/list","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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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-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.","domains":["neworleanscitypark.org"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://neworleanscitypark.org/series/crescent-city-farmers-market-2/"],"htmlRoutes":[{"id":"schema-event","match":{"exactSegments":false},"mode":"schema_event_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, or event.","domains":["www.chipotle.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://locations.chipotle.com/co/boulder/1650-28th-st"],"htmlRoutes":[{"id":"schema-localbusiness","match":{"exactSegments":false},"mode":"schema_localbusiness_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"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.budgetbytes.com/one-pot-creamy-cajun-chicken-pasta/"],"htmlRoutes":[{"id":"schema-recipe","match":{"exactSegments":false},"mode":"schema_recipe_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-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: shop name, vendor, type, price range, options, every variant (SKU, price, compare-at price, availability), and collections. No access token is read from the page or sent.","domains":["www.tentree.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":"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":"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":"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"]}}]}]} diff --git a/internal/extract/manifests/fediverse-pack.yaml b/internal/extract/manifests/fediverse-pack.yaml new file mode 100644 index 0000000..1eb8621 --- /dev/null +++ b/internal/extract/manifests/fediverse-pack.yaml @@ -0,0 +1,75 @@ +# Shared Go + TypeScript Declarative Site Adapter: Fediverse Pack (#250) +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 diff --git a/internal/extract/manifests/gorgias-reamaze.yaml b/internal/extract/manifests/gorgias-reamaze.yaml new file mode 100644 index 0000000..0ad9ac1 --- /dev/null +++ b/internal/extract/manifests/gorgias-reamaze.yaml @@ -0,0 +1,20 @@ +# Shared Go + TypeScript Declarative Site Adapter: Gorgias & Re:amaze Help Centers (#269) +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 diff --git a/internal/extract/manifests/idx-broker-showcase.yaml b/internal/extract/manifests/idx-broker-showcase.yaml new file mode 100644 index 0000000..9e85cdf --- /dev/null +++ b/internal/extract/manifests/idx-broker-showcase.yaml @@ -0,0 +1,22 @@ +# Shared Go + TypeScript Declarative Site Adapter: IDX Broker & Showcase IDX (#254) +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 diff --git a/internal/extract/manifests/ir-portal-pack.yaml b/internal/extract/manifests/ir-portal-pack.yaml new file mode 100644 index 0000000..199390d --- /dev/null +++ b/internal/extract/manifests/ir-portal-pack.yaml @@ -0,0 +1,37 @@ +# Shared Go + TypeScript Declarative Site Adapter: IR Portal Pack (#260) +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 diff --git a/internal/extract/manifests/klaviyo-attentive-forms.yaml b/internal/extract/manifests/klaviyo-attentive-forms.yaml new file mode 100644 index 0000000..0b39898 --- /dev/null +++ b/internal/extract/manifests/klaviyo-attentive-forms.yaml @@ -0,0 +1,19 @@ +# Shared Go + TypeScript Declarative Site Adapter: Klaviyo & Attentive Read-Only Forms (#270) +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 diff --git a/internal/extract/manifests/lemmy.yaml b/internal/extract/manifests/lemmy.yaml new file mode 100644 index 0000000..999a35f --- /dev/null +++ b/internal/extract/manifests/lemmy.yaml @@ -0,0 +1,105 @@ +# Shared Go + TypeScript Declarative Site Adapter: Lemmy (#248) +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 diff --git a/internal/extract/manifests/multifamily-portals.yaml b/internal/extract/manifests/multifamily-portals.yaml new file mode 100644 index 0000000..6dd039e --- /dev/null +++ b/internal/extract/manifests/multifamily-portals.yaml @@ -0,0 +1,22 @@ +# Shared Go + TypeScript Declarative Site Adapter: Multifamily Portals (#253) +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 diff --git a/internal/extract/manifests/peertube.yaml b/internal/extract/manifests/peertube.yaml new file mode 100644 index 0000000..e785b2c --- /dev/null +++ b/internal/extract/manifests/peertube.yaml @@ -0,0 +1,89 @@ +# Shared Go + TypeScript Declarative Site Adapter: PeerTube (#249) +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 diff --git a/internal/extract/manifests/pm-listing-widgets.yaml b/internal/extract/manifests/pm-listing-widgets.yaml new file mode 100644 index 0000000..0374976 --- /dev/null +++ b/internal/extract/manifests/pm-listing-widgets.yaml @@ -0,0 +1,22 @@ +# Shared Go + TypeScript Declarative Site Adapter: Property Management Listing Widgets (#252) +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 diff --git a/internal/extract/manifests/popmenu.yaml b/internal/extract/manifests/popmenu.yaml new file mode 100644 index 0000000..4df7ce8 --- /dev/null +++ b/internal/extract/manifests/popmenu.yaml @@ -0,0 +1,21 @@ +# Shared Go + TypeScript Declarative Site Adapter: Popmenu (#255) +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 diff --git a/internal/extract/manifests/q4-ir.yaml b/internal/extract/manifests/q4-ir.yaml new file mode 100644 index 0000000..0483758 --- /dev/null +++ b/internal/extract/manifests/q4-ir.yaml @@ -0,0 +1,44 @@ +# Shared Go + TypeScript Declarative Site Adapter: Q4 Inc. Investor Relations (#259) +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 diff --git a/internal/extract/manifests/race-results-pack.yaml b/internal/extract/manifests/race-results-pack.yaml new file mode 100644 index 0000000..20c4324 --- /dev/null +++ b/internal/extract/manifests/race-results-pack.yaml @@ -0,0 +1,35 @@ +# Shared Go + TypeScript Declarative Site Adapter: Race Results Pack (#247) +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 diff --git a/internal/extract/manifests/rebuy-searchanise.yaml b/internal/extract/manifests/rebuy-searchanise.yaml new file mode 100644 index 0000000..005f4bc --- /dev/null +++ b/internal/extract/manifests/rebuy-searchanise.yaml @@ -0,0 +1,44 @@ +# Shared Go + TypeScript Declarative Site Adapter: Rebuy & Searchanise (#266) +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 diff --git a/internal/extract/manifests/recharge-bold-subscriptions.yaml b/internal/extract/manifests/recharge-bold-subscriptions.yaml new file mode 100644 index 0000000..bc128cd --- /dev/null +++ b/internal/extract/manifests/recharge-bold-subscriptions.yaml @@ -0,0 +1,17 @@ +# Shared Go + TypeScript Declarative Site Adapter: Recharge & Bold Subscriptions (#264) +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 diff --git a/internal/extract/manifests/runsignup.yaml b/internal/extract/manifests/runsignup.yaml new file mode 100644 index 0000000..14f0fe5 --- /dev/null +++ b/internal/extract/manifests/runsignup.yaml @@ -0,0 +1,64 @@ +# Shared Go + TypeScript Declarative Site Adapter: RunSignup (#245) +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 diff --git a/internal/extract/manifests/schema-dataset.yaml b/internal/extract/manifests/schema-dataset.yaml new file mode 100644 index 0000000..2fa8a60 --- /dev/null +++ b/internal/extract/manifests/schema-dataset.yaml @@ -0,0 +1,18 @@ +# Shared Go + TypeScript Declarative Site Adapter: Universal Schema.org Dataset (#239) +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 diff --git a/internal/extract/manifests/schema-event.yaml b/internal/extract/manifests/schema-event.yaml index 33ecacd..53af8e9 100644 --- a/internal/extract/manifests/schema-event.yaml +++ b/internal/extract/manifests/schema-event.yaml @@ -2,16 +2,33 @@ 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." +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 diff --git a/internal/extract/manifests/schema-faq-howto.yaml b/internal/extract/manifests/schema-faq-howto.yaml new file mode 100644 index 0000000..afdf20d --- /dev/null +++ b/internal/extract/manifests/schema-faq-howto.yaml @@ -0,0 +1,20 @@ +# Shared Go + TypeScript Declarative Site Adapter: Universal Schema.org FAQPage & HowTo (#238) +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 diff --git a/internal/extract/manifests/schema-localbusiness.yaml b/internal/extract/manifests/schema-localbusiness.yaml index 481c470..2be4283 100644 --- a/internal/extract/manifests/schema-localbusiness.yaml +++ b/internal/extract/manifests/schema-localbusiness.yaml @@ -2,13 +2,16 @@ 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, or event." +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 diff --git a/internal/extract/manifests/schema-medical.yaml b/internal/extract/manifests/schema-medical.yaml new file mode 100644 index 0000000..8ac4f84 --- /dev/null +++ b/internal/extract/manifests/schema-medical.yaml @@ -0,0 +1,20 @@ +# Shared Go + TypeScript Declarative Site Adapter: Universal Schema.org Medical (#241) +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 diff --git a/internal/extract/manifests/schema-menu.yaml b/internal/extract/manifests/schema-menu.yaml new file mode 100644 index 0000000..941192c --- /dev/null +++ b/internal/extract/manifests/schema-menu.yaml @@ -0,0 +1,19 @@ +# Shared Go + TypeScript Declarative Site Adapter: Schema.org Menu (#258) +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 diff --git a/internal/extract/manifests/schema-recipe.yaml b/internal/extract/manifests/schema-recipe.yaml index 2c99bc0..2290d49 100644 --- a/internal/extract/manifests/schema-recipe.yaml +++ b/internal/extract/manifests/schema-recipe.yaml @@ -5,10 +5,13 @@ 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 diff --git a/internal/extract/manifests/schema-software-app.yaml b/internal/extract/manifests/schema-software-app.yaml new file mode 100644 index 0000000..9b6f158 --- /dev/null +++ b/internal/extract/manifests/schema-software-app.yaml @@ -0,0 +1,20 @@ +# Shared Go + TypeScript Declarative Site Adapter: Universal Schema.org SoftwareApplication (#240) +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 diff --git a/internal/extract/manifests/schema-vehicle.yaml b/internal/extract/manifests/schema-vehicle.yaml new file mode 100644 index 0000000..83a9f83 --- /dev/null +++ b/internal/extract/manifests/schema-vehicle.yaml @@ -0,0 +1,18 @@ +# Shared Go + TypeScript Declarative Site Adapter: Universal Schema.org Vehicle (#237) +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 diff --git a/internal/extract/manifests/shopify-filter-apps.yaml b/internal/extract/manifests/shopify-filter-apps.yaml new file mode 100644 index 0000000..a3acebc --- /dev/null +++ b/internal/extract/manifests/shopify-filter-apps.yaml @@ -0,0 +1,40 @@ +# Shared Go + TypeScript Declarative Site Adapter: Shopify Filter Apps (#265) +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 diff --git a/internal/extract/manifests/shopify-hydrogen.yaml b/internal/extract/manifests/shopify-hydrogen.yaml new file mode 100644 index 0000000..385f805 --- /dev/null +++ b/internal/extract/manifests/shopify-hydrogen.yaml @@ -0,0 +1,18 @@ +# Shared Go + TypeScript Declarative Site Adapter: Shopify Hydrogen (#263) +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 diff --git a/internal/extract/manifests/shopify-storefront-graphql.yaml b/internal/extract/manifests/shopify-storefront-graphql.yaml index 0e3462f..1013143 100644 --- a/internal/extract/manifests/shopify-storefront-graphql.yaml +++ b/internal/extract/manifests/shopify-storefront-graphql.yaml @@ -2,9 +2,10 @@ 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: shop name, vendor, type, price range, options, every variant (SKU, price, compare-at price, availability), and collections. No access token is read from the page or sent." +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 diff --git a/internal/extract/manifests/square-toast-menu.yaml b/internal/extract/manifests/square-toast-menu.yaml new file mode 100644 index 0000000..8080c7b --- /dev/null +++ b/internal/extract/manifests/square-toast-menu.yaml @@ -0,0 +1,23 @@ +# Shared Go + TypeScript Declarative Site Adapter: Square Online Restaurant & Toast Menus (#257) +# NOTE: Deliberately claims order.toasttab.com (never toasttab.com / www.toasttab.com / *.toasttab.com) +# and runs universally via universalEngine: true for *.square.site restaurant verticals (square.site is a private PSL suffix). +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 diff --git a/internal/extract/manifests/wild-apricot.yaml b/internal/extract/manifests/wild-apricot.yaml new file mode 100644 index 0000000..e10a49c --- /dev/null +++ b/internal/extract/manifests/wild-apricot.yaml @@ -0,0 +1,21 @@ +# Shared Go + TypeScript Declarative Site Adapter: Wild Apricot (#243) +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 diff --git a/internal/extract/platform_twins.go b/internal/extract/platform_twins.go index a54f9a0..b32db76 100644 --- a/internal/extract/platform_twins.go +++ b/internal/extract/platform_twins.go @@ -13,45 +13,48 @@ const ( ) var ( - reVTEXProdID = newLazyRegexp(`(?i)"productId"\s*:\s*"?([0-9A-Za-z_-]{1,64})"?`) - reSAPSiteOccBase = newLazyRegexp(`(?i)(?:occ/v2/|baseSite["']?\s*[:=]\s*["'])([a-z0-9_-]{2,40})`) - reSAPBackendBaseURL = newLazyRegexp(`(?i)occ-backend-base-url["']?\s*(?:content\s*=\s*|[:=]\s*)["'](https?://[^"'\s>]+)`) - reSAPBackendMetaRev = newLazyRegexp(`(?i)content\s*=\s*["'](https?://[^"'\s>]+)["'][^>]{0,120}name\s*=\s*["']occ-backend-base-url["']`) - reSAPPathCode = newLazyRegexp(`(?i)/p/([A-Za-z0-9_.-]{2,80})(?:[/?#]|$)`) - reOracleProdPath = newLazyRegexp(`(?i)/product/([A-Za-z0-9_.-]{2,80})(?:[/?#]|$)`) - reOracleRepoID = newLazyRegexp(`(?i)"repositoryId"\s*:\s*"([A-Za-z0-9_.-]{2,80})"`) - reHCLWCSStoreID = newLazyRegexp(`(?i)(?:/wcs/resources/store/|storeId["']?\s*[:=]\s*["']?)(\d{2,12})`) - reHCLWCSPartNum = newLazyRegexp(`(?i)(?:partNumber["']?\s*[:=]\s*["']|/p/)([A-Za-z0-9_.-]{2,80})`) - reSearchspringSite = newLazyRegexp(`(?i)(?:siteId["']?\s*[:=]\s*["']?|data-searchspring-site=["']|searchspring\.net/sites/|searchspring\.net/search/v\d+/js/searchspring\.catalog\.js\?)([a-z0-9_-]{3,32})`) - reYotpoScript = newLazyRegexp(`(?i)(?:staticw2\.yotpo\.com/([A-Za-z0-9]{12,64})/widget\.js|yotpo\.com/v1/loader/([A-Za-z0-9]{12,64}))`) - reYotpoAppKey = newLazyRegexp(`(?i)data-appkey=["']([A-Za-z0-9]{12,64})["']`) - reYotpoProductID = newLazyRegexp(`(?i)data-(?:yotpo-)?product-id=["']([A-Za-z0-9_.-]{1,80})["']`) - reStockistTag = newLazyRegexp(`(?i)(?:stockist\.co/api/v1/|data-stockist-widget-tag=["'])([a-z0-9_-]{2,40})`) - reStoremapperID = newLazyRegexp(`(?i)(?:storemapper\.co/api/users/|data-storemapper-id=["']|storemapper_user_id\s*[:=]\s*["']?)([A-Za-z0-9_-]{2,40})`) - reStoreRocketID = newLazyRegexp(`(?i)(?:storerocket\.io/api/user/|data-storerocket-id=["'])([A-Za-z0-9_-]{2,40})`) - reAlgoliaSearch = newLazyRegexp(`algoliasearch\(\s*["']([A-Za-z0-9]{6,20})["']\s*,\s*["']([a-zA-Z0-9]{16,64})["']`) - reAlgoliaIndex = newLazyRegexp(`(?i)(?:indexName|data-algolia-index)\s*[:=]\s*["']([A-Za-z0-9_.-]{1,80})["']`) - reBVPasskey = newLazyRegexp(`(?i)passkey["']?\s*[:=]\s*["']([A-Za-z0-9_-]{8,80})["']`) - reBVProductID = newLazyRegexp(`(?i)(?:data-bv-product-id=|productId["']?\s*[:=]\s*["'])([A-Za-z0-9_.-]{1,80})`) - rePRApiKey = newLazyRegexp(`(?i)(?:pr_api_key|api_key|apikey)["']?\s*[:=]\s*["']([A-Za-z0-9_-]{8,80})["']`) - rePRMerchantID = newLazyRegexp(`(?i)(?:pr_merchant_id|merchant_id|merchantId)["']?\s*[:=]\s*["']([A-Za-z0-9_-]{2,40})["']`) - rePRPageID = newLazyRegexp(`(?i)(?:pr_page_id|page_id|pageId)["']?\s*[:=]\s*["']([A-Za-z0-9_.-]{1,80})["']`) - reYextApiKey = newLazyRegexp(`(?i)(?:api_key|apiKey)["']?\s*[:=]\s*["']([A-Za-z0-9_-]{8,80})["']`) - reKhorosMsgID = newLazyRegexp(`(?i)/(?:td-p|m-p|ba-p|ta-p)/(\d{1,16})(?:[/?#]|$)`) - reEcwidScriptStore = newLazyRegexp(`(?i)app\.ecwid\.com/script\.js\?(\d{2,16})`) - reEcwidPublicTok = newLazyRegexp(`\b(public_[A-Za-z0-9_-]{12,80})\b`) - reMedusaPubKey = newLazyRegexp(`\b(pk_[A-Za-z0-9]{16,120})\b`) - reMedusaProdSlug = newLazyRegexp(`(?i)/products/([A-Za-z0-9_.-]{1,160})(?:[/?#]|$)`) - reBigCartelProd = newLazyRegexp(`(?i)^/product/([A-Za-z0-9_.-]{1,160})/?$`) - reSpreeProdPath = newLazyRegexp(`(?i)/products/([A-Za-z0-9_.-]{1,160})(?:[/?#]|$)`) - reStatusIOID = newLazyRegexp(`(?i)/pages/(?:history/)?([0-9a-f]{24})(?:[/?#]|$)`) - reBeamerProductID = newLazyRegexp(`(?i)\b_product_id\s*=\s*["']([A-Za-z0-9_-]{4,40})["']`) - reBeamerLanguage = newLazyRegexp(`(?i)\b_language\s*=\s*["']([A-Za-z_-]{2,10})["']`) - reHubSpotHubDBPath = newLazyRegexp(`(?i)(/(?:_hcms/api/hubdb/v3|hs/api/hubdb/v2)/tables/[A-Za-z0-9_.-]{1,120}/rows)(?:[?"'\s<]|$)`) - reCMSContentfulPath = newLazyRegexp(`(?i)^/spaces/[^/]+/environments/[^/]+/entries/[^/]+/?$`) - reCMSStoryblokPath = newLazyRegexp(`(?i)^/v2/cdn/stories/.+`) - reCMSBuilderPath = newLazyRegexp(`(?i)^/api/v3/content/[^/]+/[^/]+/?$`) - reCMSStrapiPath = newLazyRegexp(`(?i)^/api/([A-Za-z0-9_-]{1,64})/([A-Za-z0-9_.-]{1,128})/?$`) + reVTEXProdID = newLazyRegexp(`(?i)"productId"\s*:\s*"?([0-9A-Za-z_-]{1,64})"?`) + reSAPSiteOccBase = newLazyRegexp(`(?i)(?:occ/v2/|baseSite["']?\s*[:=]\s*["'])([a-z0-9_-]{2,40})`) + reSAPBackendBaseURL = newLazyRegexp(`(?i)occ-backend-base-url["']?\s*(?:content\s*=\s*|[:=]\s*)["'](https?://[^"'\s>]+)`) + reSAPBackendMetaRev = newLazyRegexp(`(?i)content\s*=\s*["'](https?://[^"'\s>]+)["'][^>]{0,120}name\s*=\s*["']occ-backend-base-url["']`) + reSAPPathCode = newLazyRegexp(`(?i)/p/([A-Za-z0-9_.-]{2,80})(?:[/?#]|$)`) + reOracleProdPath = newLazyRegexp(`(?i)/product/([A-Za-z0-9_.-]{2,80})(?:[/?#]|$)`) + reOracleRepoID = newLazyRegexp(`(?i)"repositoryId"\s*:\s*"([A-Za-z0-9_.-]{2,80})"`) + reHCLWCSStoreID = newLazyRegexp(`(?i)(?:/wcs/resources/store/|storeId["']?\s*[:=]\s*["']?)(\d{2,12})`) + reHCLWCSPartNum = newLazyRegexp(`(?i)(?:partNumber["']?\s*[:=]\s*["']|/p/)([A-Za-z0-9_.-]{2,80})`) + reSearchspringSite = newLazyRegexp(`(?i)(?:siteId["']?\s*[:=]\s*["']?|data-searchspring-site=["']|searchspring\.net/sites/|searchspring\.net/search/v\d+/js/searchspring\.catalog\.js\?)([a-z0-9_-]{3,32})`) + reYotpoScript = newLazyRegexp(`(?i)(?:staticw2\.yotpo\.com/([A-Za-z0-9]{12,64})/widget\.js|yotpo\.com/v1/loader/([A-Za-z0-9]{12,64}))`) + reYotpoAppKey = newLazyRegexp(`(?i)data-appkey=["']([A-Za-z0-9]{12,64})["']`) + reYotpoProductID = newLazyRegexp(`(?i)data-(?:yotpo-)?product-id=["']([A-Za-z0-9_.-]{1,80})["']`) + reStockistTag = newLazyRegexp(`(?i)(?:stockist\.co/api/v1/|data-stockist-widget-tag=["'])([a-z0-9_-]{2,40})`) + reStoremapperID = newLazyRegexp(`(?i)(?:storemapper\.co/api/users/|data-storemapper-id=["']|storemapper_user_id\s*[:=]\s*["']?)([A-Za-z0-9_-]{2,40})`) + reStoreRocketID = newLazyRegexp(`(?i)(?:storerocket\.io/api/user/|data-storerocket-id=["'])([A-Za-z0-9_-]{2,40})`) + reAlgoliaSearch = newLazyRegexp(`algoliasearch\(\s*["']([A-Za-z0-9]{6,20})["']\s*,\s*["']([a-zA-Z0-9]{16,64})["']`) + reAlgoliaIndex = newLazyRegexp(`(?i)(?:indexName|data-algolia-index)\s*[:=]\s*["']([A-Za-z0-9_.-]{1,80})["']`) + reBVPasskey = newLazyRegexp(`(?i)passkey["']?\s*[:=]\s*["']([A-Za-z0-9_-]{8,80})["']`) + reBVProductID = newLazyRegexp(`(?i)(?:data-bv-product-id=|productId["']?\s*[:=]\s*["'])([A-Za-z0-9_.-]{1,80})`) + rePRApiKey = newLazyRegexp(`(?i)(?:pr_api_key|api_key|apikey)["']?\s*[:=]\s*["']([A-Za-z0-9_-]{8,80})["']`) + rePRMerchantID = newLazyRegexp(`(?i)(?:pr_merchant_id|merchant_id|merchantId)["']?\s*[:=]\s*["']([A-Za-z0-9_-]{2,40})["']`) + rePRPageID = newLazyRegexp(`(?i)(?:pr_page_id|page_id|pageId)["']?\s*[:=]\s*["']([A-Za-z0-9_.-]{1,80})["']`) + reYextApiKey = newLazyRegexp(`(?i)(?:api_key|apiKey)["']?\s*[:=]\s*["']([A-Za-z0-9_-]{8,80})["']`) + reKhorosMsgID = newLazyRegexp(`(?i)/(?:td-p|m-p|ba-p|ta-p)/(\d{1,16})(?:[/?#]|$)`) + reEcwidScriptStore = newLazyRegexp(`(?i)app\.ecwid\.com/script\.js\?(\d{2,16})`) + reEcwidPublicTok = newLazyRegexp(`\b(public_[A-Za-z0-9_-]{12,80})\b`) + reMedusaPubKey = newLazyRegexp(`\b(pk_[A-Za-z0-9]{16,120})\b`) + reMedusaProdSlug = newLazyRegexp(`(?i)/products/([A-Za-z0-9_.-]{1,160})(?:[/?#]|$)`) + reBigCartelProd = newLazyRegexp(`(?i)^/product/([A-Za-z0-9_.-]{1,160})/?$`) + reSpreeProdPath = newLazyRegexp(`(?i)/products/([A-Za-z0-9_.-]{1,160})(?:[/?#]|$)`) + reStatusIOID = newLazyRegexp(`(?i)/pages/(?:history/)?([0-9a-f]{24})(?:[/?#]|$)`) + reBeamerProductID = newLazyRegexp(`(?i)\b_product_id\s*=\s*["']([A-Za-z0-9_-]{4,40})["']`) + reBeamerLanguage = newLazyRegexp(`(?i)\b_language\s*=\s*["']([A-Za-z_-]{2,10})["']`) + reHubSpotHubDBPath = newLazyRegexp(`(?i)(/(?:_hcms/api/hubdb/v3|hs/api/hubdb/v2)/tables/[A-Za-z0-9_.-]{1,120}/rows)(?:[?"'\s<]|$)`) + reCMSContentfulPath = newLazyRegexp(`(?i)^/spaces/[^/]+/environments/[^/]+/entries/[^/]+/?$`) + reCMSStoryblokPath = newLazyRegexp(`(?i)^/v2/cdn/stories/.+`) + reCMSBuilderPath = newLazyRegexp(`(?i)^/api/v3/content/[^/]+/[^/]+/?$`) + reCMSStrapiPath = newLazyRegexp(`(?i)^/api/([A-Za-z0-9_-]{1,64})/([A-Za-z0-9_.-]{1,128})/?$`) + reShopifyStorefrontToken = newLazyRegexp(`(?i)(?:storefrontAccessToken|x-shopify-storefront-access-token)["']?\s*[:=]\s*["']([A-Za-z0-9_-]{16,64})["']`) + reShopifyStorefrontAPIVer = newLazyRegexp(`(?i)/api/(20\d\d-(?:01|04|07|10))/graphql\.json`) + reShopifyProdHandlePath = newLazyRegexp(`(?i)/products/([A-Za-z0-9_.-]{1,160})(?:[/?#]|$)`) ) // PlatformTwinDiscoveryInput configures post-HTML companion twin discovery. @@ -107,7 +110,8 @@ func isAllowedPlatformTwinHost(adapterID, candHost, pageHost string) bool { "stockist", "storemapper", "storerocket", "yext-locator", "constructor-io", "bloomreach-discovery", "klevu", "coveo", "small-search", "okendo", "judge-me", "stamped-loox-junip", "dealer-locator-pack", - "vanilla-forums", "status-page-pack", "changelog-roadmap-pack", "headless-cms-delivery", "hubspot-cms": + "vanilla-forums", "status-page-pack", "changelog-roadmap-pack", "headless-cms-delivery", "hubspot-cms", + "shopify-storefront-graphql": return ch == ph default: return false @@ -493,6 +497,33 @@ func DiscoverPlatformCompanionTwin(rawHTML string, in PlatformTwinDiscoveryInput } } } + case "shopify-storefront-graphql": + var target string + if strings.TrimSpace(cfg.Endpoint) != "" { + target = validatePlatformCandidateURL("shopify-storefront-graphql", cfg.Endpoint, pageHost, in.SelfHost) + } else { + cand := fmt.Sprintf("https://%s/api/2024-10/graphql.json", pageHost) + target = validatePlatformCandidateURL("shopify-storefront-graphql", cand, pageHost, in.SelfHost) + } + if target != "" { + reqBody := buildShopifyStorefrontGraphQLBody(pageU.Path) + var hdrs map[string]string + if tok := strings.TrimSpace(cfg.APIKey); tok != "" { + hdrs = map[string]string{"X-Shopify-Storefront-Access-Token": tok} + } + return PlatformTwinCandidate{ + Matched: true, + AdapterID: "shopify-storefront-graphql", + FetchURL: target, + Method: "POST", + RequestBody: reqBody, + ContentType: "application/json", + Headers: hdrs, + Accept: "application/json", + RequiresPageKeyOptIn: true, + FormatMode: "json:shopify_storefront_graphql_json", + } + } } } @@ -588,6 +619,33 @@ func DiscoverPlatformCompanionTwin(rawHTML string, in PlatformTwinDiscoveryInput } } } + // #262 shopify-storefront-graphql (strictly same-origin per Rule 7; POST /api//graphql.json) + if strings.Contains(markerSlice, "storefrontAccessToken") || + strings.Contains(markerSlice, "StorefrontAccessToken") || + strings.Contains(markerSlice, "x-shopify-storefront-access-token") || + strings.Contains(configSlice, "storefrontAccessToken") { + if tm := reShopifyStorefrontToken.FindStringSubmatch(configSlice); len(tm) == 2 { + apiVer := "2024-10" + if vm := reShopifyStorefrontAPIVer.FindStringSubmatch(configSlice); len(vm) == 2 { + apiVer = vm[1] + } + cand := fmt.Sprintf("https://%s/api/%s/graphql.json", pageHost, apiVer) + if target := validatePlatformCandidateURL("shopify-storefront-graphql", cand, pageHost, in.SelfHost); target != "" { + return PlatformTwinCandidate{ + Matched: true, + AdapterID: "shopify-storefront-graphql", + FetchURL: target, + Method: "POST", + RequestBody: buildShopifyStorefrontGraphQLBody(pageU.Path), + ContentType: "application/json", + Headers: map[string]string{"X-Shopify-Storefront-Access-Token": tm[1]}, + Accept: "application/json", + RequiresPageKeyOptIn: true, + FormatMode: "json:shopify_storefront_graphql_json", + } + } + } + } } // --- Gate 2: Keyless (`pub`) platform multipliers --- @@ -987,3 +1045,21 @@ func isSingleDocHeadlessCMSEndpoint(prov, rawEndpoint string) bool { return isValidStrapiContentType(m[1]) && isValidStrapiDocID(m[2]) } } + +func buildShopifyStorefrontGraphQLBody(urlPath string) string { + if pm := reShopifyProdHandlePath.FindStringSubmatch(urlPath); len(pm) == 2 { + payload := map[string]any{ + "query": `query EdgeFetchStorefrontProduct($handle: String!) { product(handle: $handle) { id handle title description vendor productType onlineStoreUrl priceRange { minVariantPrice { amount currencyCode } maxVariantPrice { amount currencyCode } } images(first: 3) { edges { node { url altText } } } variants(first: 15) { edges { node { id title sku availableForSale price { amount currencyCode } } } } } }`, + "variables": map[string]string{ + "handle": pm[1], + }, + } + b, _ := json.Marshal(payload) + return string(b) + } + payload := map[string]any{ + "query": `query EdgeFetchStorefrontProducts { products(first: 20) { edges { node { id handle title description vendor productType onlineStoreUrl priceRange { minVariantPrice { amount currencyCode } maxVariantPrice { amount currencyCode } } images(first: 1) { edges { node { url altText } } } variants(first: 10) { edges { node { id title sku availableForSale price { amount currencyCode } } } } } } } }`, + } + b, _ := json.Marshal(payload) + return string(b) +} diff --git a/internal/extract/round2_platforms_html.go b/internal/extract/round2_platforms_html.go index 5e947f5..8c49713 100644 --- a/internal/extract/round2_platforms_html.go +++ b/internal/extract/round2_platforms_html.go @@ -336,7 +336,9 @@ func round2RunCourseLeaf(rawHTML string, base *url.URL, extractorID string) *Dec // ── #242 ChamberMaster / GrowthZone member directories ─────────────────────────────────────── func round2IsChamberMaster(rawHTML string) bool { - return round2HasFold(rawHTML, "gz-") && round2HasFold(rawHTML, "chambermaster", "growthzone", "mni.hit.") + return (round2HasFold(rawHTML, "gz-") && round2HasFold(rawHTML, "chambermaster", "growthzone", "mni.hit.")) || + round2HasFold(rawHTML, `class="gz-card`, `class='gz-card`, `class="gz-list-card`, `class="gz-results-card`) || + round2HasFold(rawHTML, "mn-content", "mn-module-content", "mn-directory-list") } func round2ChamberAddress(n *HTMLNode) string { @@ -359,6 +361,9 @@ func round2RunChamberMaster(rawHTML string, base *url.URL, extractorID string) * if !round2IsChamberMaster(rawHTML) { return nil } + if strings.HasPrefix(strings.ToLower(base.Path), "/login") { + return nil + } doc := ParseHTMLDoc(rawHTML, round2MaxHTMLBytes) // Member detail page. if h1 := doc.First("h1.gz-pagetitle"); h1 != nil { @@ -456,6 +461,32 @@ func round2RunChamberMaster(rawHTML string, base *url.URL, extractorID string) * } recs = append(recs, rec) } + if len(recs) == 0 { + for _, sel := range []string{"div.mn-listing", "div.mn-event", "div.gz-events-card", "div.gz-card"} { + for _, m := range doc.Select(sel, 100) { + if len(recs) >= round2MaxRecords { + break + } + a := m.First("a[href]") + if a == nil { + continue + } + name := SanitizeSchemaPlainField(a.Text(), 200) + if name == "" { + continue + } + rec := map[string]any{"name": name} + if href := round2Abs(base, a.AttrOrEmpty("href")); href != "" { + rec["url"] = href + links = append(links, href) + } + if summary := SanitizeSchemaPlainField(m.Text("p"), 240); summary != "" { + rec["address"] = summary + } + recs = append(recs, rec) + } + } + } if len(recs) == 0 { return nil } diff --git a/internal/extract/round2_platforms_json.go b/internal/extract/round2_platforms_json.go index 0a16b6c..c684484 100644 --- a/internal/extract/round2_platforms_json.go +++ b/internal/extract/round2_platforms_json.go @@ -554,7 +554,71 @@ func round2FormatShopifyStorefront(parsed any, host string) *DeclarativeFormatte data, _ := obj["data"].(map[string]any) prod, _ := data["product"].(map[string]any) if prod == nil { - return nil + prodConn, _ := data["products"].(map[string]any) + colTitle := "" + if prodConn == nil { + if col, ok := data["collection"].(map[string]any); ok { + colTitle = round2Plain(col["title"], 200) + prodConn, _ = col["products"].(map[string]any) + } + } + if prodConn == nil { + return nil + } + pNodes := wave3StoreExtractGraphQLNodes(prodConn) + if len(pNodes) == 0 { + return nil + } + var recs []map[string]any + var links []string + var sb strings.Builder + docTitle := "Shopify Storefront Catalog" + if colTitle != "" { + docTitle = colTitle + " — Storefront Catalog" + } + sb.WriteString("# " + round2Inline(docTitle) + "\n\n") + round2Bullet(&sb, "Store", "`"+host+"`") + sb.WriteString("\n") + round2TableHeader(&sb, []string{"Product", "Vendor", "Price", "Handle"}) + for _, p := range pNodes { + if len(recs) >= round2MaxRecords { + break + } + pt := round2Plain(p["title"], 200) + if pt == "" { + continue + } + ph := round2Plain(p["handle"], 160) + pv := round2Plain(p["vendor"], 120) + pu := wave2dDevValidHTTPS(jsonScalarToString(p["onlineStoreUrl"])) + if pu == "" && ph != "" && host != "" { + pu = "https://" + host + "/products/" + url.PathEscape(ph) + } + pp := "" + if pr, ok := p["priceRange"].(map[string]any); ok { + pp = round2Money(pr["minVariantPrice"]) + } + if pu != "" { + links = append(links, pu) + } + round2TableRow(&sb, []string{round2Link(pt, pu), round2Cell(pv), round2Cell(pp), round2Cell(ph)}) + rec := map[string]any{"title": pt, "handle": ph} + if pv != "" { + rec["vendor"] = pv + } + if pp != "" { + rec["price"] = pp + } + if pu != "" { + rec["url"] = pu + } + recs = append(recs, rec) + } + if len(recs) == 0 { + return nil + } + return &DeclarativeFormattedDoc{Title: docTitle, Markdown: sb.String(), Links: links, Records: recs, + Total: round2Total(len(pNodes)), Returned: round2Total(len(recs)), Truncated: wave2dDevBoolPtr(len(pNodes) > len(recs))} } title := round2Plain(prod["title"], 300) if title == "" { @@ -633,14 +697,13 @@ func round2FormatShopifyStorefront(parsed any, host string) *DeclarativeFormatte } var variants []map[string]any if vs, ok := prod["variants"].(map[string]any); ok { - nodes, _ := vs["nodes"].([]any) - if len(nodes) > 0 { + vNodes := wave3StoreExtractGraphQLNodes(vs) + if len(vNodes) > 0 { sb.WriteString("\n## Variants\n\n") round2TableHeader(&sb, []string{"Variant", "SKU", "Price", "Compare At", "Available"}) } - for _, n := range nodes { - vm, ok := n.(map[string]any) - if !ok || len(variants) >= round2MaxRecords { + for _, vm := range vNodes { + if len(variants) >= round2MaxRecords { continue } vt := round2Plain(vm["title"], 160) diff --git a/internal/extract/round2_platforms_schema.go b/internal/extract/round2_platforms_schema.go index 1172f59..cefb276 100644 --- a/internal/extract/round2_platforms_schema.go +++ b/internal/extract/round2_platforms_schema.go @@ -387,8 +387,16 @@ func round2Offers(v any) (string, string) { return strings.Join(prices, "; "), link } +var round2EventExclusive = map[string]bool{"product": true, "productgroup": true, "recipe": true} + func round2RunSchemaEvent(rawHTML string, base *url.URL, extractorID string) *DeclarativePostFetchResult { + if wave3SchemaIsExcludedEventHost(base.String()) { + return nil + } ld := round2CollectLD(rawHTML, false) + if len(ld.ofType(round2EventExclusive)) > 0 { + return nil + } events := ld.ofType(eventTypesSchemaGo) if len(events) == 0 { return nil @@ -477,10 +485,22 @@ func round2RunSchemaEvent(rawHTML string, base *url.URL, extractorID string) *De Total: round2Total(len(events)), Returned: round2Total(len(recs)), Truncated: wave2dDevBoolPtr(len(events) > len(recs))} } -// ── #236 Schema.org LocalBusiness (and subtypes) ───────────────────────────────────────────── +var round2LBExtraSubtypes = map[string]bool{ + "autorepair": true, "foodestablishment": true, "bakery": true, "cafeorcoffeeshop": true, + "barorpub": true, "dentist": true, "attorney": true, "legalservice": true, + "realestateagent": true, "sportsactivitylocation": true, "professionalservice": true, +} -var round2LBExclusive = map[string]bool{"product": true, "jobposting": true, "recipe": true, "newsarticle": true, - "blogposting": true, "article": true, "reportagenewsarticle": true} +var round2LBExclusive = map[string]bool{ + "product": true, "productgroup": true, "jobposting": true, "recipe": true, + "newsarticle": true, "blogposting": true, "article": true, "reportagenewsarticle": true, + "car": true, "vehicle": true, "motorcycle": true, "motorizedbicycle": true, + "course": true, "courseinstance": true, "educationaloccupationalprogram": true, + "dataset": true, "datacatalog": true, + "softwareapplication": true, "webapplication": true, "mobileapplication": true, + "medicalcondition": true, "drug": true, "physician": true, "medicalclinic": true, "medicalwebpage": true, + "menu": true, "menusection": true, "menuitem": true, +} func round2Hours(lb map[string]any) []string { var out []string @@ -507,14 +527,28 @@ func round2Hours(lb map[string]any) []string { } func round2RunSchemaLocalBusiness(rawHTML string, base *url.URL, extractorID string) *DeclarativePostFetchResult { + if wave3SchemaHasCommercePlatformMarkers(rawHTML) { + return nil + } ld := round2CollectLD(rawHTML, false) if len(ld.ofType(round2LBExclusive)) > 0 || len(ld.ofType(eventTypesSchemaGo)) > 0 { return nil } + for _, n := range ld.nodes { + if m, ok := n["hasMenu"].(map[string]any); ok && len(m) > 0 { + return nil + } + if arr, ok := n["hasMenu"].([]any); ok && len(arr) > 0 { + return nil + } + } var lb map[string]any lbType := "" for _, n := range ld.nodes { t := round2HasType(n, localBusinessTypesSchemaGo) + if t == "" { + t = round2HasType(n, round2LBExtraSubtypes) + } if t == "" { for _, raw := range normalizeSchemaTypesSchemaGo(n["@type"]) { low := strings.ToLower(raw) @@ -524,7 +558,8 @@ func round2RunSchemaLocalBusiness(rawHTML string, base *url.URL, extractorID str } } } - if t != "" && round2Plain(n["name"], 10) != "" && n["address"] != nil { + hasContactOrHours := n["address"] != nil || n["telephone"] != nil || n["openingHours"] != nil || n["openingHoursSpecification"] != nil || n["geo"] != nil + if t != "" && round2Plain(n["name"], 10) != "" && hasContactOrHours { lb, lbType = n, t break } diff --git a/internal/extract/wave2a_extractors.go b/internal/extract/wave2a_extractors.go index a367122..9f0cd1b 100644 --- a/internal/extract/wave2a_extractors.go +++ b/internal/extract/wave2a_extractors.go @@ -222,6 +222,12 @@ func FormatWave2aJSONPublic(mode string, rawBytes []byte, origURL string, htmlTo if mode == "changelog_beamer_html" { return formatChangelogBeamerHTML(rawBytes, origURL, htmlToMD) } + if IsRound2JSONMode(mode) { + return FormatRound2JSONDoc(mode, rawBytes, nil, origURL) + } + if IsWave3StoreAddonsJSONMode(mode) { + return FormatWave3StoreAddonsJSONDoc(mode, rawBytes, nil, origURL) + } if !isWave2aOr2bJSONMode(mode) { return nil, false } diff --git a/internal/extract/wave3_community.go b/internal/extract/wave3_community.go new file mode 100644 index 0000000..87c7fe6 --- /dev/null +++ b/internal/extract/wave3_community.go @@ -0,0 +1,2368 @@ +package extract + +import ( + "bytes" + "encoding/json" + "fmt" + stdhtml "html" + "net/url" + "strconv" + "strings" + "time" +) + +const ( + wave3CommMaxHTMLBytes = 2 * 1024 * 1024 + wave3CommMaxJSONBytes = 4 * 1024 * 1024 + wave3CommMaxRecords = 30 +) + +var ( + wave3CommRxNotFoundTitle = 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|we'?re\s+unable\s+to\s+find\s+the\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|making\s+sure\s+you(?:'|'|')?re\s+not\s+a\s+bot!?)(?:\b|$)`) + wave3CommRxMaintTitle = 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)`) + wave3CommRxErrorTitle = 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)$`) + wave3CommRxLoginTitle = newLazyRegexp(`(?i)^(?:log\s*in|sign\s+in|login|member\s+login|authentication\s+required|sso\s+login|single\s+sign[- ]on|web\s+login|account\s+login)(?:\s*[|\-\x{2013}\x{2014}:]\s*.*)?$`) + wave3CommRxGenericHead = newLazyRegexp(`(?i)^(?:loading\.{0,3}|home|welcome|search|calendar|news|events|menu|navigation|wrong\s+document\s+context!?|athlinks|misskey)$`) + wave3CommRxISODate = 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})`) + wave3CommRxSlashDate = newLazyRegexp(`^(\d{1,2})/(\d{1,2})/(\d{4})(?:\s+(\d{1,2}:\d{2}))?$`) + wave3CommRxASPNetDate = newLazyRegexp(`^/Date\((-?\d+)([+-]\d{4})?\)/$`) + wave3CommRxSpace = newLazyRegexp(`[ \t\r\n]+`) + wave3CommRxTitleSep = newLazyRegexp(`\s*\|\s*|\s+[-\x{2013}\x{2014}]\s+`) +) + +func init() { + for _, mode := range []string{ + "wild_apricot_html", + "association_ams_html", + "runsignup_html", + "bikereg_usacycling_html", + "race_results_pack_html", + "lemmy_html", + "peertube_html", + "fediverse_pack_html", + } { + m := mode + RegisterExternalHTMLModeLazy(m, func(rawHTML, baseURL string, _ func() string, extractorID string) *DeclarativePostFetchResult { + return Wave3CommunityRunHTML(m, rawHTML, baseURL, extractorID) + }) + } +} + +// IsWave3CommunityHTMLMode reports whether mode is handled by Category E Community HTML extractors (#243-#250). +func IsWave3CommunityHTMLMode(mode string) bool { + switch mode { + case "wild_apricot_html", + "association_ams_html", + "runsignup_html", + "bikereg_usacycling_html", + "race_results_pack_html", + "lemmy_html", + "peertube_html", + "fediverse_pack_html": + return true + default: + return false + } +} + +// IsWave3CommunityJSONMode reports whether mode is handled by Category E Community JSON formatters (#245-#250). +func IsWave3CommunityJSONMode(mode string) bool { + switch mode { + case "runsignup_json", + "bikereg_json", + "lemmy_json", + "peertube_json", + "fediverse_pack_json": + return true + default: + return false + } +} + +func wave3CommDefaultExtractorID(mode string) string { + switch mode { + case "wild_apricot_html": + return "wild-apricot" + case "association_ams_html": + return "association-ams-pack" + case "runsignup_html", "runsignup_json": + return "runsignup" + case "bikereg_usacycling_html", "bikereg_json": + return "bikereg-usacycling" + case "race_results_pack_html": + return "race-results-pack" + case "lemmy_html", "lemmy_json": + return "lemmy" + case "peertube_html", "peertube_json": + return "peertube" + case "fediverse_pack_html", "fediverse_pack_json": + return "fediverse-pack" + default: + return "" + } +} + +// Wave3CommunityRunHTML executes a Category E Community HTML extractor and returns DeclarativePostFetchResult. +func Wave3CommunityRunHTML(mode, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if !IsWave3CommunityHTMLMode(mode) || len(rawHTML) == 0 || strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return nil + } + if len(rawHTML) > wave3CommMaxHTMLBytes { + rawHTML = truncateUTF8SafeFullDocGo(rawHTML, wave3CommMaxHTMLBytes) + } + trimmed := strings.TrimLeft(rawHTML, " \t\r\n") + if trimmed == "" || trimmed[0] == '{' || trimmed[0] == '[' { + return nil + } + if extractorID == "" { + extractorID = wave3CommDefaultExtractorID(mode) + } + if wave3CommHasNegativeShell(rawHTML, baseURL) { + return nil + } + var res *DeclarativePostFetchResult + switch mode { + case "wild_apricot_html": + res = wave3CommExtractWildApricotHTML(rawHTML, baseURL, extractorID) + case "association_ams_html": + res = wave3CommExtractAssociationAMSHTML(rawHTML, baseURL, extractorID) + case "runsignup_html": + res = wave3CommExtractRunSignupHTML(rawHTML, baseURL, extractorID) + case "bikereg_usacycling_html": + res = wave3CommExtractBikeRegUSACyclingHTML(rawHTML, baseURL, extractorID) + case "race_results_pack_html": + res = wave3CommExtractRaceResultsPackHTML(rawHTML, baseURL, extractorID) + case "lemmy_html": + res = wave3CommExtractLemmyHTML(rawHTML, baseURL, extractorID) + case "peertube_html": + res = wave3CommExtractPeerTubeHTML(rawHTML, baseURL, extractorID) + case "fediverse_pack_html": + res = wave3CommExtractFediversePackHTML(rawHTML, baseURL, extractorID) + } + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + return res +} + +// FormatWave3CommunityJSONDoc formats a Category E Community JSON twin payload into DeclarativeFormattedDoc. +func FormatWave3CommunityJSONDoc(mode string, raw []byte, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3CommunityJSONMode(mode) || len(raw) == 0 || len(raw) > wave3CommMaxJSONBytes { + 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 "runsignup_json": + doc, handled = wave3CommFormatRunSignupJSON(parsed, origURL) + case "bikereg_json": + doc, handled = wave3CommFormatBikeRegJSON(parsed, origURL) + case "lemmy_json": + doc, handled = wave3CommFormatLemmyJSON(parsed, origURL) + case "peertube_json": + doc, handled = wave3CommFormatPeerTubeJSON(parsed, origURL) + case "fediverse_pack_json": + doc, handled = wave3CommFormatFediversePackJSON(parsed, params, origURL) + } + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3CommFinalizeDoc(doc), true +} + +// FormatWave3CommunityJSONMode formats a Category E Community JSON payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3CommunityJSONMode(mode string, raw []byte, params map[string]string, origURL string) (string, bool) { + doc, ok := FormatWave3CommunityJSONDoc(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 & Parsing Helpers ────────────────────────────────────────────────────────────── + +func wave3CommIntPtr(v int) *int { return &v } +func wave3CommBoolPtr(v bool) *bool { return &v } + +func wave3CommFinalizeDoc(doc *DeclarativeFormattedDoc) *DeclarativeFormattedDoc { + if doc == nil { + return nil + } + if len(doc.Records) > wave3CommMaxRecords { + if doc.Total == nil { + doc.Total = wave3CommIntPtr(len(doc.Records)) + } + doc.Records = doc.Records[:wave3CommMaxRecords] + doc.Returned = wave3CommIntPtr(len(doc.Records)) + doc.Truncated = wave3CommBoolPtr(true) + if doc.NextCursor == "" { + doc.NextCursor = strconv.Itoa(len(doc.Records)) + } + } + if sanitized, ok := sanitizeDeclarativeFormattedDocGo(doc); ok && sanitized != nil { + return sanitized + } + return nil +} + +func wave3CommIsNegativeURL(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, "/sys/login") || + 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") || + strings.HasSuffix(pathOnly, "/login") || + strings.HasSuffix(pathOnly, "/signin") || + strings.HasSuffix(pathOnly, "/sign-in") || + strings.Contains(pathOnly, "/login/") +} + +func wave3CommLowerProbe(rawHTML string, maxBytes int) string { + if len(rawHTML) > maxBytes { + rawHTML = rawHTML[:maxBytes] + } + return asciiLowerExtractString(rawHTML) +} + +func wave3CommContainsAny(lower string, needles ...string) bool { + for _, n := range needles { + if strings.Contains(lower, n) { + return true + } + } + return false +} + +func wave3CommHasNegativeShell(rawHTML, baseURL string) bool { + if wave3CommIsNegativeURL(baseURL) { + return true + } + probe := rawHTML + if len(probe) > 65536 { + probe = probe[:65536] + } + lower := asciiLowerExtractString(probe) + // WAF, Cloudflare, Anubis PoW, and access-denied interstitials + if wave3CommContainsAny(lower, + "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", + `id="anubis_version"`, + `id="anubis_challenge"`, + "/.within.website/x/xess/", + "making sure you're not a bot!", + "making sure you're not a bot!", + ) { + return true + } + if !hasJSONLDScriptToken(probe) && !strings.Contains(lower, "data-page=") && + wave3CommContainsAny(lower, "scheduled maintenance", "down for maintenance", "under maintenance", "temporarily unavailable", "503 service unavailable") && + len(rawHTML) < 48*1024 { + return true + } + title := wave3CommCleanText(extractTitleLinearQuick(probe)) + if title != "" && (wave3CommRxNotFoundTitle.MatchString(title) || wave3CommRxMaintTitle.MatchString(title) || wave3CommRxErrorTitle.MatchString(title)) { + return true + } + if title != "" && wave3CommRxLoginTitle.MatchString(title) && !hasJSONLDScriptToken(probe) && len(rawHTML) < 48*1024 { + return true + } + if len(rawHTML) < 32*1024 && !hasJSONLDScriptToken(probe) && !strings.Contains(lower, "data-page=") && + wave3CommContainsAny(lower, `name="samlrequest"`, `name="samlresponse"`, ` and Misskey SPA shell) + hasInertia := strings.Contains(lower, "data-page=") + hasJSONLD := hasJSONLDScriptToken(probe) + if len(rawHTML) < 24*1024 && !hasJSONLD && !hasInertia { + isSpaShell := wave3CommContainsAny(lower, + `
`, + `
`, + `
`, + `
`, + `
`, + `
`, + `
`, + ``, + ``, + ) || (strings.Contains(lower, `= 0 { + s = stripTagsInlineLinear(s) + } + if strings.IndexByte(s, '&') >= 0 { + s = stdhtml.UnescapeString(s) + } + return strings.TrimSpace(wave3CommRxSpace.ReplaceAllString(s, " ")) +} + +func wave3CommFragToMD(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 wave3CommFirstNonEmpty(vals ...string) string { + for _, v := range vals { + if t := strings.TrimSpace(v); t != "" { + return t + } + } + return "" +} + +func wave3CommPlain(v any, maxLen int) string { + return SanitizeSchemaPlainField(jsonScalarToString(v), maxLen) +} + +func wave3CommParseASPNetDate(raw string) string { + s := strings.TrimSpace(raw) + m := wave3CommRxASPNetDate.FindStringSubmatch(s) + if len(m) < 2 { + return "" + } + ms, err := strconv.ParseInt(m[1], 10, 64) + if err != nil { + return "" + } + loc := time.UTC + if len(m) >= 3 && m[2] != "" { + if len(m[2]) != 5 { + return "" + } + sign := 1 + if m[2][0] == '-' { + sign = -1 + } + hh, errH := strconv.Atoi(m[2][1:3]) + mm, errM := strconv.Atoi(m[2][3:5]) + if errH != nil || errM != nil || hh > 14 || mm > 59 { + return "" + } + loc = time.FixedZone("TZ", sign*(hh*3600+mm*60)) + } + t := time.UnixMilli(ms).In(loc) + if t.Year() < 1970 || t.Year() > 2035 { + return "" + } + if t.Hour() == 0 && t.Minute() == 0 && t.Second() == 0 { + return t.Format("2006-01-02") + } + return t.Format(time.RFC3339) +} + +func wave3CommNormalizeDate(raw string) string { + s := strings.TrimSpace(raw) + if s == "" { + return "" + } + if strings.HasPrefix(s, "/Date(") { + return wave3CommParseASPNetDate(s) + } + if m := wave3CommRxISODate.FindStringSubmatch(s); len(m) == 2 { + return m[1] + } + if m := wave3CommRxSlashDate.FindStringSubmatch(s); len(m) >= 4 { + mo, errMo := strconv.Atoi(m[1]) + dy, errDy := strconv.Atoi(m[2]) + yr, errYr := strconv.Atoi(m[3]) + if errMo == nil && errDy == nil && errYr == nil && mo >= 1 && mo <= 12 && dy >= 1 && dy <= 31 { + iso := fmt.Sprintf("%04d-%02d-%02d", yr, mo, dy) + if len(m) >= 5 && m[4] != "" { + return iso + " " + m[4] + } + return iso + } + } + return "" +} + +func wave3CommFormatPrice(raw any) string { + switch v := raw.(type) { + case json.Number: + if f, err := v.Float64(); err == nil && f >= 0 { + return fmt.Sprintf("$%.2f", f) + } + case float64: + if v >= 0 { + return fmt.Sprintf("$%.2f", v) + } + case int: + if v >= 0 { + return fmt.Sprintf("$%d.00", v) + } + case string: + s := strings.TrimSpace(strings.TrimPrefix(v, "$")) + s = strings.ReplaceAll(s, ",", "") + if f, err := strconv.ParseFloat(s, 64); err == nil && f >= 0 { + return fmt.Sprintf("$%.2f", f) + } + } + return "" +} + +func wave3CommResolveURL(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 "" + } + u, err := url.Parse(ref) + if err != nil { + return "" + } + if u.IsAbs() { + if u.Scheme == "https" || u.Scheme == "http" { + return u.String() + } + return "" + } + if baseURL == "" { + return "" + } + b, err := url.Parse(baseURL) + if err != nil { + return "" + } + res := b.ResolveReference(u) + if res.Scheme == "https" || res.Scheme == "http" { + return res.String() + } + return "" +} + +func wave3CommExtractAttr(tag, attrName string) string { + lowTag := asciiLowerExtractString(tag) + needle := strings.ToLower(attrName) + "=" + idx := strings.Index(lowTag, needle) + for idx > 0 { + prev := lowTag[idx-1] + if prev == ' ' || prev == '\t' || prev == '\n' || prev == '\r' { + break + } + nextIdx := strings.Index(lowTag[idx+len(needle):], needle) + if nextIdx < 0 { + idx = -1 + break + } + idx = idx + len(needle) + nextIdx + } + if idx < 0 { + return "" + } + rest := strings.TrimLeft(tag[idx+len(needle):], " \t\r\n") + if rest == "" { + return "" + } + quote := rest[0] + if quote == '"' || quote == '\'' { + rest = rest[1:] + if end := strings.IndexByte(rest, quote); end >= 0 { + return rest[:end] + } + return "" + } + end := strings.IndexAny(rest, " \t\r\n>") + if end >= 0 { + return rest[:end] + } + return rest +} + +func wave3CommExtractMeta(rawHTML, key string) string { + probe := rawHTML + if len(probe) > 65536 { + probe = probe[:65536] + } + target := strings.ToLower(key) + pos := 0 + for pos < len(probe) { + idx := indexFoldASCIIExtract(probe[pos:], "') + if end < 0 { + break + } + tag := probe[start : start+end+1] + pos = start + end + 1 + lowTag := asciiLowerExtractString(tag) + if !strings.Contains(lowTag, target) { + continue + } + nameVal := wave3CommExtractAttr(tag, "property") + if nameVal == "" { + nameVal = wave3CommExtractAttr(tag, "name") + } + if strings.EqualFold(nameVal, key) { + if content := wave3CommCleanText(wave3CommExtractAttr(tag, "content")); content != "" { + return content + } + } + } + return "" +} + +type wave3CommTagMatch struct { + Tag string + OpenTag string + Inner string +} + +func wave3CommScanTags(htmlStr string, limit int) []wave3CommTagMatch { + var out []wave3CommTagMatch + pos := 0 + for pos < len(htmlStr) && len(out) < limit { + lt := strings.IndexByte(htmlStr[pos:], '<') + if lt < 0 { + break + } + start := pos + lt + if start+2 >= len(htmlStr) { + break + } + if htmlStr[start+1] == '/' || htmlStr[start+1] == '!' || htmlStr[start+1] == '?' { + gt := strings.IndexByte(htmlStr[start:], '>') + if gt < 0 { + break + } + pos = start + gt + 1 + continue + } + gt := strings.IndexByte(htmlStr[start:], '>') + if gt < 0 { + break + } + openTag := htmlStr[start : start+gt+1] + nameEnd := 1 + for nameEnd < len(openTag)-1 { + c := openTag[nameEnd] + if c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '/' || c == '>' { + break + } + nameEnd++ + } + tag := asciiLowerExtractString(openTag[1:nameEnd]) + pos = start + gt + 1 + if tag == "script" || tag == "style" || tag == "noscript" || tag == "svg" { + if closeIdx := indexFoldASCIIExtract(htmlStr[pos:], "= 0 { + if cgt := strings.IndexByte(htmlStr[pos+closeIdx:], '>'); cgt >= 0 { + pos = pos + closeIdx + cgt + 1 + continue + } + } + continue + } + switch tag { + case "h1", "h2", "h3", "p", "li", "tr", "td", "th", "article", "time", "span": + closeTok := "= 0 && closeIdx <= 16384 { + out = append(out, wave3CommTagMatch{ + Tag: tag, + OpenTag: openTag, + Inner: htmlStr[pos : pos+closeIdx], + }) + if tag != "article" && tag != "tr" { + if cgt := strings.IndexByte(htmlStr[pos+closeIdx:], '>'); cgt >= 0 { + pos = pos + closeIdx + cgt + 1 + } + } + } + } + } + return out +} + +func wave3CommExtractBestHeadingAndSite(rawHTML string) (string, string) { + probe := rawHTML + if len(probe) > 128*1024 { + probe = probe[:128*1024] + } + pageTitle := wave3CommCleanText(extractTitleLinearQuick(probe)) + ogTitle := wave3CommExtractMeta(probe, "og:title") + siteName := wave3CommExtractMeta(probe, "og:site_name") + + h1 := "" + for _, m := range wave3CommScanTags(probe, 80) { + if m.Tag == "h1" { + cand := wave3CommCleanText(m.Inner) + if cand != "" && !wave3CommRxGenericHead.MatchString(cand) && len(cand) <= 220 { + h1 = cand + break + } + } + } + + cleanedPage := pageTitle + if cleanedPage != "" { + parts := wave3CommRxTitleSep.Split(cleanedPage, 4) + for _, p := range parts { + cand := strings.TrimSpace(p) + if cand != "" && !wave3CommRxGenericHead.MatchString(cand) { + cleanedPage = cand + break + } + } + } + best := wave3CommFirstNonEmpty(h1, ogTitle, cleanedPage, pageTitle) + return best, siteName +} + +func wave3CommExtractBalancedDivsByClass(rawHTML, classNeedle string, limit int) []string { + var out []string + needleLower := strings.ToLower(classNeedle) + pos := 0 + for pos < len(rawHTML) && len(out) < limit { + idx := indexFoldASCIIExtract(rawHTML[pos:], needleLower) + if idx < 0 { + break + } + hit := pos + idx + openStart := strings.LastIndex(rawHTML[:hit], " 400 { + pos = hit + len(needleLower) + continue + } + gt := strings.IndexByte(rawHTML[openStart:], '>') + if gt < 0 || openStart+gt < hit { + pos = hit + len(needleLower) + continue + } + depth := 1 + cur := openStart + gt + 1 + endPos := -1 + for cur < len(rawHTML) && cur-openStart < 32768 { + nextOpen := indexFoldASCIIExtract(rawHTML[cur:], "= 0 && nextOpen < nextClose { + depth++ + cur += nextOpen + 4 + } else { + depth-- + cur += nextClose + 6 + if depth == 0 { + endPos = cur + break + } + } + } + if endPos > openStart { + out = append(out, rawHTML[openStart:endPos]) + pos = endPos + } else { + pos = hit + len(needleLower) + } + } + return out +} + +func wave3CommExtractAnchorLinks(rawHTML, baseURL string, pathNeedles []string, limit int) []struct{ Text, URL string } { + var out []struct{ Text, URL string } + seen := make(map[string]bool) + scan := rawHTML + if len(scan) > 512*1024 { + scan = scan[:512*1024] + } + pos := 0 + for pos < len(scan) && len(out) < limit { + idx := indexFoldASCIIExtract(scan[pos:], "') + if gt < 0 { + break + } + openTag := scan[start : start+gt+1] + closeIdx := indexFoldASCIIExtract(scan[start+gt+1:], "") + pos = start + gt + 1 + if closeIdx < 0 || closeIdx > 2048 { + continue + } + inner := wave3CommCleanText(scan[pos : pos+closeIdx]) + pos += closeIdx + 4 + href := wave3CommExtractAttr(openTag, "href") + resolved := wave3CommResolveURL(href, baseURL) + if resolved == "" || seen[resolved] { + continue + } + if len(pathNeedles) > 0 { + lowURL := strings.ToLower(resolved) + matched := false + for _, pn := range pathNeedles { + if strings.Contains(lowURL, pn) { + matched = true + break + } + } + if !matched { + continue + } + } + seen[resolved] = true + if inner == "" { + inner = resolved + } + out = append(out, struct{ Text, URL string }{Text: inner, URL: resolved}) + } + return out +} + +func wave3CommExtractDOMSnippets(rawHTML string, maxSnippets int) (headings []string, paragraphs []string, listItems []string) { + scan := rawHTML + if len(scan) > 256*1024 { + scan = scan[:256*1024] + } + lower := asciiLowerExtractString(scan) + if idx := strings.Index(lower, "= 0 { + if end := strings.Index(lower[idx:], ""); 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) + } + } +}