-
Notifications
You must be signed in to change notification settings - Fork 100
LibreX API
hnhx edited this page Jan 19, 2023
·
5 revisions
You can get the list of instances by making a request to: .../instances.json
You can search on LibreX this way: .../api.php?q=gentoo&p=2&type=0
-
qis the search query -
pis the page (first page is0) -
tis the search type-
0= general -
1= image -
2= video -
3= torrent -
4= tor
-
The API supports both POST and GET requests.
Example result for general search:
[
...
{
"title": "Gentoo Linux - GitHub",
"url": "https:\/\/github.com\/gentoo",
"base_url": "https:\/\/github.com\/",
"description": "Gentoo Linux has 118 repositories available. Follow their code on GitHub."
},
...
]
(Replace ... with the URL of any LibreX instance)