vulnerablecode icon indicating copy to clipboard operation
vulnerablecode copied to clipboard

ConanVersionAPI stopped working

Open keshav-space opened this issue 2 years ago • 2 comments

This API URL is no longer valid https://github.com/nexB/vulnerablecode/blob/170c21e5af51c7308d89769b92f0c597e5e36fc9/vulnerabilities/package_managers.py#L567-L570

ERROR:vulnerabilities.package_managers:Error while fetching 'https://conan.io/center/api/ui/details?name=openssl&user=_&channel=_': 404

keshav-space avatar Aug 08 '23 22:08 keshav-space

There is another API. I found out it can be useful.

$ curl "https://center.conan.io/v1/conans/search?q=name=openssl"
{
  "results" : [ "openssl/1.0.2s@_/_", "openssl/1.0.2t@_/_", "openssl/1.0.2u@_/_", "openssl/1.1.0k@_/_", "openssl/1.1.0l@_/_", "openssl/1.1.1c@_/_", "openssl/1.1.1d@_/_", "openssl/1.1.1e@_/_", "openssl/1.1.1f@_/_", "openssl/1.1.1g@_/_", "openssl/1.1.1h@_/_", "openssl/1.1.1i@_/_", "openssl/1.1.1j@_/_", "openssl/1.1.1k@_/_", "openssl/1.1.1l@_/_", "openssl/1.1.1m@_/_", "openssl/1.1.1n@_/_", "openssl/1.1.1o@_/_", "openssl/1.1.1p@_/_", "openssl/1.1.1q@_/_", "openssl/1.1.1s@_/_", "openssl/1.1.1t@_/_", "openssl/1.1.1u@_/_", "openssl/1.1.1v@_/_", "openssl/1.1.1w@_/_", "openssl/3.0.0@_/_", "openssl/3.0.10@_/_", "openssl/3.0.11@_/_", "openssl/3.0.12@_/_", "openssl/3.0.13@_/_", "openssl/3.0.14@_/_", "openssl/3.0.15@_/_", "openssl/3.0.1@_/_", "openssl/3.0.2@_/_", "openssl/3.0.3@_/_", "openssl/3.0.4@_/_", "openssl/3.0.5@_/_", "openssl/3.0.7@_/_", "openssl/3.0.8@_/_", "openssl/3.0.9@_/_", "openssl/3.1.0@_/_", "openssl/3.1.1@_/_", "openssl/3.1.2@_/_", "openssl/3.1.3@_/_", "openssl/3.1.4@_/_", "openssl/3.1.5@_/_", "openssl/3.1.6@_/_", "openssl/3.1.7@_/_", "openssl/3.2.0@_/_", "openssl/3.2.1@_/_", "openssl/3.2.2@_/_", "openssl/3.2.3@_/_", "openssl/3.3.1@_/_", "openssl/3.3.2@_/_" ]
}

ziadhany avatar Sep 04 '25 19:09 ziadhany

There are some issues since v1 is now dead:

  • https://center.conan.io/v1/conans/search?q=name=openssl is 403, and likely requires some auth
  • see https://blog.conan.io/2024/09/30/Conan-Center-will-stop-receiving-updates-for-Conan-1.html

Also the new (not clearly documented) v2 API endpoint is at:

  • https://github.com/conan-io/conan-center-index?tab=readme-ov-file#configure-the-conan-center-remote

Per https://github.com/conan-io/conan/issues/18766 I feel conan data is hard to get to short of using conan code directly.

https://github.com/goszpeti/conan_explorer by @goszpeti seesm to have a nice way to deal with remote and get lists of packages

pombredanne avatar Sep 08 '25 10:09 pombredanne