# NuGet API: Get package

> Looks up a NuGet package by name or nuget.org link. Inexact names match the top search result. Returns the latest stable release's details and the 10 most recent versions, including prereleases.

Unofficial. Not affiliated with or endorsed by NuGet.

- Page: https://fous.com/methods/nuget.org/get-package
- Method: `nuget.org/get_package`, version 1
- Website: nuget.org
- Returns: package name, latest stable version, description, downloads, authors, owners, license, project link, target frameworks, recent versions
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `package` | string | yes | `"Newtonsoft.Json"` | Package name or nuget.org package link, for example Newtonsoft.Json or https://www.nuget.org/packages/Newtonsoft.Json. |

## Output

From a run on Oct 23, 2026, shortened. Its input:

```json
{
  "package": "Newtonsoft.Json"
}
```

Its output:

```json
{
  "owners": [
    "dotnetfoundation",
    "jamesnk",
    "newtonsoft"
  ],
  "authors": [
    "James Newton-King"
  ],
  "license": "MIT",
  "versions": [
    {
      "date": "2026-09-21",
      "version": "14.0.1-beta2",
      "downloads": 48629,
      "package_link": "https://www.nuget.org/packages/Newtonsoft.Json/14.0.1-beta2"
    },
    {
      "date": "2026-09-21",
      "version": "14.0.1-beta1",
      "downloads": 1607,
      "package_link": "https://www.nuget.org/packages/Newtonsoft.Json/14.0.1-beta1"
    },
    {
      "date": "2025-09-16",
      "version": "13.0.4",
      "downloads": 281501343,
      "package_link": "https://www.nuget.org/packages/Newtonsoft.Json/13.0.4"
    }
  ],
  "description": "Json.NET is a popular high-performance JSON framework for .NET",
  "package_link": "https://www.nuget.org/packages/Newtonsoft.Json",
  "package_name": "Newtonsoft.Json",
  "project_link": "https://www.newtonsoft.com/json",
  "total_downloads": 9572927389,
  "last_updated_date": "2025-09-16",
  "target_frameworks": [
    ".NET Framework 2.0",
    ".NET Framework 3.5",
    ".NET Framework 4.0"
  ],
  "latest_stable_version": "13.0.4"
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"nuget.org/get_package","input":{"package":"Newtonsoft.Json"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- Look up the NuGet package Newtonsoft.Json and show its latest stable version, license, and download count
- What are the most recent versions of Serilog on NuGet, including any prereleases?
- Find the NuGet package for Polly and tell me its authors, project URL, and supported target frameworks
- I need details on the nuget.org package https://www.nuget.org/packages/AutoMapper, especially its description and owners
- Which package does nuget.org return for 'fluent validation' and what license does it use?

## Input schema

```json
{
  "type": "object",
  "required": [
    "package"
  ],
  "properties": {
    "package": {
      "type": "string",
      "description": "Package name or nuget.org package link, for example Newtonsoft.Json or https://www.nuget.org/packages/Newtonsoft.Json."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "package_name",
    "latest_stable_version",
    "description",
    "total_downloads",
    "authors",
    "owners",
    "license",
    "project_link",
    "target_frameworks",
    "last_updated_date",
    "versions",
    "package_link"
  ],
  "properties": {
    "owners": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "authors": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "license": {
      "type": [
        "string",
        "null"
      ]
    },
    "versions": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "version",
          "downloads",
          "date",
          "package_link"
        ],
        "properties": {
          "date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "version": {
            "type": "string"
          },
          "downloads": {
            "type": "integer"
          },
          "package_link": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "description": "The 10 most recent versions, including prereleases."
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "package_link": {
      "type": "string"
    },
    "package_name": {
      "type": "string",
      "description": "The matched NuGet package name."
    },
    "project_link": {
      "type": [
        "string",
        "null"
      ]
    },
    "total_downloads": {
      "type": "integer"
    },
    "last_updated_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "target_frameworks": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "latest_stable_version": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false
}
```

## See more

- [npm API: Get package](https://fous.com/methods/npmjs.com/get-package.md): Looks up a public npm package by name or npm link. Returns its latest version, weekly downloads, maintainers, links, dates and version count.
- [PyPI API: Get package](https://fous.com/methods/pypi.org/get-package.md): Gets a PyPI package's current version, release date, metadata, project links and its 10 most recently published versions from a package name or PyPI link.
- [Visual Studio Marketplace API: Get VS Code extension](https://fous.com/methods/marketplace.visualstudio.com/get-extension.md): Finds a VS Code Marketplace extension by name or marketplace link and returns its publisher, installs, rating, version, categories and update date. For a name search it picks the most-installed close match.
- [npm API: Search packages](https://fous.com/methods/npmjs.com/search-packages.md): Searches the npm registry for JavaScript packages by description or keywords, in npm's search order, and returns each package's latest version, weekly downloads and publish date.
- [RubyGems API: Get a Ruby gem's details](https://fous.com/methods/rubygems.org/get-gem.md): Looks up a Ruby gem on RubyGems by name or gem page link and returns its latest version, release date, description, downloads, authors, license, links and runtime dependencies.
- [WordPress.org API: Get WordPress plugin details](https://fous.com/methods/wordpress.org/get-plugin.md): Finds the best-matching WordPress.org plugin by name or plugin page link and returns its details, including the changelog for the latest version when one is available.
- [GitHub API: Get repository facts](https://fous.com/methods/github.com/get-repository.md): Looks up a public GitHub repository by name, owner/name, or link and returns its stars, forks, release, commit and contributor facts.
- [npm API: Get download stats](https://fous.com/methods/npmjs.com/get-download-stats.md): Returns total and daily or Monday-start weekly npm downloads for a package over the last week, month, or year.
