这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@allendema
Copy link
Contributor

https://news.ycombinator.com/item?id=31536626

What does this PR do?

Add Marginalia.nu engine.
Currently it uses a public api_key /public/.

https://api.marginalia.nu/

Why is this change important?

More engines to choose from.
This one is open source.

https://git.marginalia.nu/marginalia/marginalia.nu

How to test this PR locally?

!mar regex

Author's checklist

Add a standalone engine with the option to add api_key.

Related issues

Closes #1620

Copy link
Member

@tiekoetter tiekoetter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Currently it uses a public api_key `/public/` [1]

The 'index' parameter selects the search index, corresponding to the drop down
next to the search field in the main GUI.

    0: popular
    1: blogs
    2: big_sites
    3: default
    4: experimental

'experimental' is more up to date and does not exclude other sites, which is the
case with 'big sites' or 'blogs'.

[1] https://api.marginalia.nu/
[2] https://git.marginalia.nu/marginalia/marginalia.nu
[3] https://news.ycombinator.com/item?id=31536626

Closes: searxng#1620
Copy link
Member

@return42 return42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for adding new search engine 👍

@return42 return42 merged commit 925f3ff into searxng:master Aug 8, 2022
@allendema
Copy link
Contributor Author

You are welcome :)

@dalf dalf mentioned this pull request Aug 31, 2022
return42 added a commit to return42/searxng that referenced this pull request Jun 5, 2023
The engine configuration of marginalia [2][3][4][5] spams marginalia.nu with
requests from SearXNG instances [1].  It is not in the interest of SearXNG to
disturb other FOSS projects, so the engine will be removed::

    - name: marginalia
      engine: json_engine
      shortcut: mar
      categories: general
      paging: false
      # Key and license: https://www.marginalia.nu/marginalia-search/api/
      # index: 0 popular, 1 blogs, 2 big_sites, 3 default, 4 experimental
      search_url: https://api.marginalia.nu/<insert your key here>/search/{query}?index=4&count=20
      results_query: results
      url_query: url
      title_query: title
      content_query: description
      timeout: 1.5
      disabled: true
      about:
        website: https://www.marginalia.nu/
        official_api_documentation: https://api.marginalia.nu/
        use_official_api: true
        require_api_key: true
        results: JSON

[1] searxng#1673
[2] searxng#1627
[3] searxng#1620
[4] https://news.ycombinator.com/item?id=35874640
[5] https://github.com/MarginaliaSearch/MarginaliaSearch/blob/d82a8584915c9d416921cc9f1c0637efedea664f/code/services-satellite/api-service/src/main/java/nu/marginalia/api/svc/ResponseCache.java#L12-L20

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
return42 pushed a commit to Austin-Olacsi/searxng that referenced this pull request Aug 8, 2025
To get an API key follow instructions at [1].

[1] https://about.marginalia-search.com/article/api/

Related (historical ordered):

- searxng#1620
- searxng#1673
- searxng#1627
- searxng#2489

Closes:

- searxng#3034
return42 added a commit that referenced this pull request Aug 9, 2025
To get an API key follow instructions at [1].

[1] https://about.marginalia-search.com/article/api/

Related (historical ordered):
- #1620
- #1673
- #1627
- #2489

Closes:
- #3034

Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Marginalia

3 participants