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

  • @jgkawellOP
    link
    English
    31 year ago

    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.