What is the URL for NuGet Gallery to access (nuget.org) from VS2010 via Package Manager Console? I tried to use the Web site URL (http://nuget.org/List/Packages) but it didn't work.
6 Answers
With NuGet 3, the url has changed again, it's now https://api.nuget.org/v3/index.json
.
Microsoft Docs should always list the latest feed address: Use packages from nuget.org > Enable the upstream on an existing feed.
-
52Why oh why is this so difficult to find on NuGet.org? It should be featured prominently on the landing page. I need to find this answer every time - thanks!– DuneCatCommented Oct 31, 2017 at 9:53
-
For even better copypaste: <add key="nugetorg" value="api.nuget.org/v3/index.json" />– mfabrunoCommented Jan 24, 2022 at 17:37
-
In my case, it kept getting blocked by the company's firewall,have to ask and reask whenever it got blocked... The security guy blame the URL, what the f is wrong with nuget anyway. Every other site I use pass the firewall Commented Apr 13, 2023 at 8:38
-
I know it's late, but this bit me. learn.microsoft.com/en-us/nuget/nuget-org/… is a direct link to MS documentation for the current NuGet API endpoint. Looks like v3 is still current.– jvanceCommented Sep 26, 2023 at 13:01
The Microsoft Go link in the accepted answer above is an old one, the correct URL is: http://go.microsoft.com/fwlink/?LinkID=230477
This points to https://www.nuget.org/api/v2/, which is the NuGet version 2 package source feed.
I tend to use the actual URL, not the Go link anyway. As proven by the two different Go links, there is no guarantee it won't change as well, so I find it more explicit to point to the actual URL.
The Microsoft Go links are, in my opinion, a bad idea. They completely obscure the actual web URL, which defeats the purpose of HTTP addresses in the first place.
-
11
http://go.microsoft.com/fwlink/?LinkID=206669
That maps to: http://packages.nuget.org/v1/FeedService.svc/ but you should use the Go link to future-proof yourself.
-
-
7The URL above is an old one, see my answer below for the newer URL to the version 2 NuGet feed.– rikoeCommented Jun 27, 2014 at 9:23
-
9Current link is api.nuget.org/v3/index.json hidden at the bottom of their FAQ page. Commented Nov 27, 2020 at 3:25
The most up to date nuget package url should be documented here:
(as at this moment, that would be: https://api.nuget.org/v3/index.json)
For the life of me, I do not understand why this is not displayed prominently on nuget.org landing page. 🤦♂️
-
1Now I think the better place for Nuget to maintain this URL is Overview of NuGet.org -> API endpoint for Nuget.org.– ElderryCommented Nov 17, 2021 at 3:12
I found that http://go.microsoft.com/fwlink/?LinkID=206669 points to the full NuGet Gallery while the default registered url https://go.microsoft.com/fwlink/?LinkID=206669 (watch the protocol: Https) points only to the Official NuGet package source.
For reference, you can check what the supported URLs are by going directly to the NuGet site here: https://www.nuget.org and looking under the heading 'NuGet Feed Locations'
-
one year later - and no such heading. Really, this info should always stay on their landing page!– yairCommented Dec 28, 2017 at 21:23
-
This answer is incorrect. The URL is not on the homepage. Commented Sep 19, 2018 at 17:59
-
3Microsoft's go links have always been worthless. They change everything every couple of years. The concept of a permalink is unknown to them. So much frustration! Commented Oct 24, 2018 at 13:27