Skip to contentSkip to conversation

JSON query API

DISCUSSION Felipe Ferreri Tonello 1 participant 1 message Jan 20, 2016 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

Hi,

I would like to know if it is possible to develop a simple REST API that receives a search term (a man page) and returns some sort of JSON with the man page name, description and link to the actual man page.

My goal is to allow DuckDuckGo (and similar tools) to search for man pages using their Instant Answers. This would allow users to search the man pages directly using a "man" prefix on DuckDuckGo. For example:
searching for "man listen" would show something similar to when I search for "Linux Kernel"[1], but instead of showing a wikipedia entry, it would show the man page entry for `man 2 listen'.

[1] https://duckduckgo.com/Linux_kernel?ia=about

Felipe