Unable to load the service index for source https://api.nuget.org/v3/index.json.

Sajjad Afzal 51 Reputation points
2025-05-11T07:23:07.2+00:00

User's image

Visual Studio2022: Nuget package manager is giving error:

Unable to load the service index for source https://api.nuget.org/v3/index.json.

  1. Windows 10 machine
  2. Cannot access https://api.nuget.org/v3/index.json. in the browser
  3. https://www.nuget.org/api/v2/ works in browser and Visual Studio
  4. TLS 1.2
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,264 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Sajjad Afzal 51 Reputation points
    2025-05-11T17:10:05.2166667+00:00

    Or you can change the nuget source to https://www.nuget.org/api/v2/ in Visual Studio options.

    User's image

    and In the Nuget Package Manger change the Package source the new source

    5 people found this answer helpful.

  2. Waqas Anwar 20 Reputation points
    2025-05-12T16:33:00.7033333+00:00

    As per the following blog post Nuget v3 API is down but it will be available soon so for now it's suggesting same solution of going back to v2 temporarily.

    https://dev.to/sardarmudassaralikhan/how-to-resolve-nuget-package-manager-issues-with-v3-api-downtime-ico

    3 people found this answer helpful.

  3. Syed Burhan Ali Shah 5 Reputation points
    2025-05-21T12:57:43.8966667+00:00

    I can confirm this issue is due to the API Blocked in your country. I used the desktop vpn and I was able to connect to nuget.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.