Skip to content

not returning json results, only html #3542

Answered by emuchogu
im-fabian asked this question in Q&A
Discussion options

You must be logged in to vote

Do the following to enable the api:

  1. Edit the settings file:
vi searxng/settings.yml
  1. Add 'json' to the formats section:
search:
  formats:
    - html
    - json
  1. Restart the container to apply changes:
docker restart searxng

The API should now respond to JSON format requests.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@eXPerience83
Comment options

@deadphyre
Comment options

@eXPerience83
Comment options

Answer selected by return42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
6 participants
Converted from issue

This discussion was converted from issue #3541 on June 06, 2024 13:17.