Getting Gugal to work with SearXNG [SOLVED]

I'm running my own SearXNG instance and trying to configure Gugal to work with it: https://gitlab.com/narektor/gugal

It says my instance needs to have API access enabled but for the life of me I can't figure out how to do that. Anyone done this before or know how to do it?

edit: SOLVED - see comment below

7 points · 3 comments · view on lemmy.world

3 Comments

jgkawell@lemmy.world · 3 pts · 3y (2 replies)

Figured it out! Nowhere is this documented in Gugal or SearXNG docs, but the way to do it is to add the json format to your search config like so:

search:
  formats:
    - html
    - json

This does make sense in hindsight as you are essentially enabling requests over the a JSON API however it is odd that this isn't documented anywhere. Also, note that if your instance is publicly exposed this makes it easy for bots to spam/scrape it.

AES@lemmy.ronsmans.eu · 2 pts · 3y (1 reply)

Cool, thanks for sharing the solution!

jgkawell@lemmy.world · 1 pts · 3y

For sure!