We're happy to provide our code collection for integrations of all types. At this point, search API is available publicly with no need to register any keys.
Usage is as simple as calling api.onelinerhub.com/search
endpoint with query
parameter (GET or POST).
curl "https://api.onelinerhub.com/search?query=php+header+json"
[
{
"url": "https:\/\/onelinerhub.com\/javascript\/fetch_post_uri",
"tech": "javascript",
"subject": "Ajax post x-www-form-urlencoded data",
"lang": "javascript",
"code": "fetch('\/backend.php...log(data);\n});"
}
// , ...
]
Response data description:
url
- public URL of the code piece pagetech
- technology of this codesubject
- Full title for the codelang
- Code piece languagecode
- Code piece itself