Hacker News new | ask | show | jobs
Ask HN: Would you pay for a REST API for checking broken links?
2 points by gggarnier 4768 days ago
We run a SaaS website that, among other things, checks for broken links and we're thinking about creating a separate website that would provide _ONLY_ a REST API (a service) for checking broken links on any website - something like W3C checker.

Would such an API be useful for you? What features should it have? Would you pay for it? And how much?

Thank you for your opinions and time.

2 comments

It sounded good to me initially, but then I thought... those users that are interested in testing their application (hopefully most) will already have built tests for their API.

I guess it's a question of whether you can provide a service that is good value for money (i.e. it saves time), when I can already whip some tests together relatively quickly during development of my API.

Thank you for your answer, but I think I haven't described it clearly enough: it wouldn't check for broken API links but it would be a REST API (a service) for checking broken links on any website - something like W3C checker.
Ah I see what you mean now. My mistake.

That sounds more useful... but it's also something that most developers could probably build for themselves in a few minutes?

1. Grab page 2. Parse and find links 3. Make a request to each link 4. Return any links that are returning 4xx or 5xx.

Maybe there's a use for it where people want to test a particularly large set of pages/links making use of a data center's typically superior connection? shrug

Yes, exactly. It would also be able to crawl linked pages, take screenshots of broken pages, show the path how to get to the broken pages, provide reports, ability to schedule checks like say every 24 hours, alerting (SMS, email), ...

Plus it would check not only links but also images, stylesheets, scripts, submitting forms - something like a 'website testing platform'.

Every university I've worked at has wanted a comprehensive scanner of some sorts. Most resort to half-implementing their own.

It needs to not only check links, but also * Check 301 redirects and such * Check spelling if possible * Probably the thing they'd pay for the most: a solid scan of WCAG AA or other standard with respect to section 508