mirror of
https://github.com/hnhx/librex.git
synced 2025-01-10 11:47:24 -03:00
Framework and javascript free privacy respecting meta search engine
1337x-apiahmia-apigooglegoogle-apimetasearch-enginenyaa-apionion-servicephpprivacyprivacy-frontendrutor-apisearchsearch-engineself-hostedthepiratebay-apitortorrent
engines | ||
misc | ||
static | ||
api.php | ||
config.php | ||
donate.php | ||
index.php | ||
LICENSE | ||
opensearch.xml | ||
README.md | ||
search.php |
LibreX
A privacy respecting free as in freedom meta search engine for Google
Online instances
If you wish to get your instance added create an issue with:
- the URL of your instance
- the country where your instance is being hosted
Your request will be rejected if your instance:
- contains JavaScript
- contains ads
- has been heavily modified
Features
- Ad free
- JavaScript free
- Cookie free
- Tracking snippets from URLs are removed
- Image results are converted to base64 to prevent clients from connecting to Google servers
- Supports both POST and GET requests
- YouTube results are converted into a privacy friendly Invidious instance
- Easy to use JSON API
- No 3rd party libs are used
- Easy to setup
Hosting
Hosting LibreX should be easy since no 3rd party libs are used.
All you need is a webserver (e.g.: nginx) and PHP, and you are good to go.
API
Example API request: .../api.php?q=gentoo&p=2&type=0
Where q
is the keyword, p
is the result page (the first page is 0
) and type
is the search type (0
=text, 1
=image, 2
=video, 3
=torrent)
JSON result:
- In case of text search:
title
: Title of the result siteurl
: Full URL of the resultbase_url
: The base URL of the result (e.g.: http://example.com/test.php -> http://example.com/)
- In case of image search:
base64
: The result image converted to base64 formatalt
: The description of the image
- In case of video search:
title
: Title of the result videourl
: Full URL of the videobase_url
: The base URL of the result (e.g.: http://youtube.com/watch -> http://youtube.com/)
- In case of torrent search:
hash
: Hash of the torrentname
: Name of the torrentseeders
: The amount of seedersleechers
: The amount of leechersmagnet
: The magnet link
The API also supports both GET and POST requests
Donate
Monero (XMR): 41dGQr9EwZBfYBY3fibTtJZYfssfRuzJZDSVDeneoVcgckehK3BiLxAV4FvEVJiVqdiW996zvMxhFB8G8ot9nBFqQ84VkuC