wiki/data.format.duckduckgo-bangs.org
2022-07-29 15:41:17 +00:00

797 B

Duckduckgo bangs data

  • DDG keeps their bangs in a file /bang.v${VERSION}.js (e.g., /bang.v260.js, /bang.v245.js)
  • despite the file extension, it is a JSON file
  • conveniently versioned though older versions are missing
  • though, you can the latest version through /bang.js
  • slightly not readable at first glance but by taking multiple examples, we can get a pattern

    • d is the domain
    • c is the category
    • u is the template and the URL that we sorely need
    • t is the trigger word, aka the thing we need to search (e.g., !w will have t: "w")
    • a is a list of aliases
    • sc is subcategory