-
Notifications
You must be signed in to change notification settings - Fork 92
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
-
q
is the search query -
p
is the page (first page is0
) -
t
is 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)