Swissdamed
Show all entries
https://swissdamed.ch/udi-search
Result of all Entries as JSON
Attach:swissdamed_entries_30.9.2025.txt
Grep for packages in the entries
grep -oE '"id":\s*"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"' response.json | grep -B 1 -E '"(udiDis|packageUdiDis)"' response.json -A 20 | grep '"id"' | awk -F'"' '{print $4}' | wc -l
Download all with Curl
curl -X POST 'https://swissdamed.ch/public/udi/basic-udis?page=0&size=50' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Content-Type: application/json' \
-H 'Cookie: sm-cookie-fe=faa2288bf14361b6; sm-cookie-be=app-ba4e9a565644fde9; JSESSIONID=60608BCCD371C9D6AFF970381DFED7FC; XSRF-TOKEN=e8f83fb0-3eea-4917-a242-4213fad5c5a1' \
-H 'X-XSRF-TOKEN: e8f83fb0-3eea-4917-a242-4213fad5c5a1' \
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' \
-d '{}' -o swissdamed.json
Convert to sqlitedb
Attach:converter.cpp.txt
curl -O https://raw.githubusercontent.com/nlohmann/json/develop/single_include/nlohmann/json.hpp
clang++ -std=c++17 converter.cpp -o converter -lsqlite3 -I.
./converter swissdamed.json swissdamed.db