77

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.

1
  • Looking at all the answers below, makes me think nuget has a problem. All of these answers points to an architecture smell. Feb 21, 2018 at 18:45

6 Answers 6

185

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.

4
  • 50
    Why 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!
    – DuneCat
    Oct 31, 2017 at 9:53
  • For even better copypaste: <add key="nugetorg" value="api.nuget.org/v3/index.json" />
    – mfabruno
    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 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.
    – jvance
    Sep 26, 2023 at 13:01
32

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.

1
  • 10
    Note that there is a new feed URL as of NuGet 3.0: https://api.nuget.org/v3/index.json
    – rikoe
    Nov 28, 2016 at 10:44
27

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.

3
  • Thanks, I just discover it :) Apr 17, 2011 at 11:34
  • 7
    The URL above is an old one, see my answer below for the newer URL to the version 2 NuGet feed.
    – rikoe
    Jun 27, 2014 at 9:23
  • 9
    Current link is api.nuget.org/v3/index.json hidden at the bottom of their FAQ page.
    – ourmandave
    Nov 27, 2020 at 3:25
14

The most up to date nuget package url should be documented here:

Microsoft Nuget FAQ

(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. 🤦‍♂️

1
2

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.

-2

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'

3
  • one year later - and no such heading. Really, this info should always stay on their landing page!
    – yair
    Dec 28, 2017 at 21:23
  • This answer is incorrect. The URL is not on the homepage. Sep 19, 2018 at 17:59
  • 3
    Microsoft'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!
    – Greg Woods
    Oct 24, 2018 at 13:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.