Features

API Reference

All public and admin endpoints registered by MapAltiusSEO() and MapAltiusSEOAdmin().

Public Endpoints /api/seo

Called automatically by the frontend components. No authentication required.

MethodEndpointDescription
POST/trackTrack a page view
POST/track/eventTrack a custom event
POST/track/sessionStart a new session
POST/track/session/endEnd a session
GET/sitemap.xmlServe the XML sitemap
GET/robots.txtServe robots.txt
GET/redirect/matchCheck for a redirect rule match
POST/redirect/hitTrack a redirect hit
POST/404/trackTrack a 404 error
POST/license/validateValidate a license key

Admin Endpoints /api/admin/seo

Called by the dashboard UI. Protect with authentication in production (see below).

Analytics

MethodEndpointDescription
GET/analytics/overviewOverview stats (views, visitors, bounce rate, avg duration)
GET/analytics/pagesTop pages report
GET/analytics/devicesDevice breakdown
GET/analytics/referrersTraffic sources
GET/analytics/cwvCore Web Vitals per page
GET/analytics/realtimeCurrent active visitors
GET/analytics/geoGeographic breakdown

SEO Meta

MethodEndpointDescription
GET/pagesList all page metas
GET/pages/by-urlGet meta for a specific page
PUT/pagesCreate or update page meta
GET/pages/scoreGet SEO score + checks

Sitemap

MethodEndpointDescription
GET/sitemapList all sitemap entries
POST/sitemapAdd a sitemap entry
DELETE/sitemap/{id}Remove a sitemap entry

Robots.txt

MethodEndpointDescription
GET/robotsGet rules + config
PUT/robotsSave rules + config

RedirectsPro

MethodEndpointDescription
GET/redirectsList all redirects
POST/redirectsCreate a redirect
PUT/redirects/{id}Update a redirect
DELETE/redirects/{id}Delete a redirect
POST/redirects/importBulk CSV import

404 MonitorPro

MethodEndpointDescription
GET/404sList 404 entries
GET/404s/{id}/suggestionsGet auto-fix suggestions
POST/404s/{id}/resolveMark entry as resolved
DELETE/404s/{id}Delete a 404 entry

SchemaPro

MethodEndpointDescription
GET/schemasList all schemas
POST/schemasCreate a schema
PUT/schemas/{id}Update a schema
DELETE/schemas/{id}Delete a schema
POST/schemas/validateValidate schema JSON
GET/schemas/field-definitionsGet field definitions for all 12 types

KeywordsPro

MethodEndpointDescription
POST/keywords/analyzeAnalyze page content for keyword density
GET/keywords/pageGet stored analysis for a page
POST/keywords/readabilityCompute Flesch-Kincaid readability score

Internal LinksPro

MethodEndpointDescription
POST/links/suggestGet internal link suggestions for a page

Authentication

Admin endpoints are not authenticated by default. Add your auth policy in production:

app.MapAltiusSEOAdmin()
   .RequireAuthorization(); // Attach your ASP.NET Core auth policy

Without authentication, anyone who can reach /api/admin/seo can read your analytics and modify your SEO settings. Always protect this in production.