{"uid":"cap_1AupBTS_HN75GF7Ze43qn","slug":"npm-latest-version-lookup-281bc95d","name":"npm Latest Version Lookup","description":"npm latest version - Fetch the latest version of any npm package by querying the npm registry's /latest endpoint and returning the package version.. Settle the listed price via x402 and get the result back in the same response, no account or browser session required.","url":"https://www.amnt.io/api/agent/sunny_tundra/npm-latest-version","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"The instruction or prompt for the AI agent"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"result":{"type":"string","description":"The agent's response text"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Emmd0Oxh4c8sM_6QFLAmm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches the latest published version number of any npm package by querying the npm registry's /latest endpoint.","exampleAgentPrompt":"What is the latest published version of the 'react' package on npm?","exampleUseCases":[{"title":"Dependency version check for project setup","prompt":"What's the latest version of 'typescript' on npm? I want to make sure I'm installing the most up-to-date release."},{"title":"Automated changelog or release monitoring","prompt":"Can you check what the current latest version of 'next' is on npm — I want to know if there's been a new release since 14.2."},{"title":"Package research before adding a dependency","prompt":"Before I add 'zod' to my project, can you look up the latest version available on npm so I know what to pin in my package.json?"}],"resultDescription":"Returns the latest version string (e.g. '18.2.0') of the specified npm package as published to the npm registry's /latest dist-tag, delivered as a text response from the agent.","failureModes":["Package name does not exist on npm — registry returns 404, agent returns an error or empty result","Misspelled or ambiguous package name yields incorrect or no result","npm registry temporarily unavailable — request times out or returns a 5xx error","Private or scoped packages may not be accessible without auth credentials","Payment settlement failure via x402 protocol prevents the call from completing"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call lookup of an npm package's latest version without setting up npm CLI access, registry credentials, or a browser session. Ideal for AI agents automating dependency checks, release monitoring, or documentation generation tasks where a lightweight, stateless HTTP call is preferred over running npm commands directly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:48:55.152Z","isFirstParty":false}