Is this SQL Server build patched? Ask an API.

Send a SQL Server build number such as 16.0.4135.4 and get back what it is, whether it is the latest build, how many builds behind it is, whether support has ended, and the update to move to. Plain JSON over HTTPS, so a script, a monitoring check or a CI job can call it.

Get a free key

Free: 500 calls a day, key sent to your email. Pro: 20,000 calls a day. Yearly is two months free.

Price: $9 / monthLicense termsRefund policy

Only the build number is sent Free key by email SQL Server 7 to 2025 Plain JSON

What it is, in plain words

Every SQL Server has a build number, and that number tells you whether the server is patched. Working that out by hand means reading Microsoft's build lists and support pages. SQLVersionAPI does it for you: your script reads the version from your own SQL Server, sends the number, and gets a short JSON answer.

It answers the question you actually have, whether this build is patched, and not only what the build is: how many builds behind it is, which update to install, and whether a security fix is missing. When the data cannot say, the answer says so with a null instead of guessing that a server is safe.

The calls

All calls are GET requests to https://sguapi.gatherio.net. Send your key in the X-SGU-Token header.

Every call counts as one call against the key's daily limit.
CallWhat it returns
/api/v1/SQLVersionEvaluation?version=16.0.4135.4 Is this build the latest of its SQL Server version, and is it supported? The brand, the latest build, the support level (Main, Extended, Out or UnKnown) and the KB article of the latest build.
/api/v1/SQLVersionAPI/PatchAdvice?version=16.0.4135.4 The patch advisor: how many known builds are newer on the same line, the newest cumulative update or security update that applies (with KB article and download link), whether a security fix is missing, and when mainstream and extended support end.
/api/v2/SQLVersions Every known build, newest first (694 builds, SQL Server 7 to 2025), with KB number and link, release date, service pack, cumulative update and service model.
/api/v1/SQLVersions The older list shape of the same builds. Prefer v2.

Try it with curl

Replace <key> with your key. On Windows use curl.exe.

Is this build the latest, and is it supported?

curl -H "X-SGU-Token: <key>" "https://sguapi.gatherio.net/api/v1/SQLVersionEvaluation?version=16.0.4135.4"
{"LatestBuild":"16.0.4135.4","Latest":"1","SupportLevel":"Main","BrandName":"SQL Server 2022","Major":"16","Minor":"0","KBUrl":"https://..."}

All values are strings. Latest is "1" when the build you asked about is the newest known build of its brand, else "0". A build that is not in our list answers 200 with empty strings and Latest "0". A missing version is a 400.

How patched is this build?

curl -H "X-SGU-Token: <key>" "https://sguapi.gatherio.net/api/v1/SQLVersionAPI/PatchAdvice?version=16.0.4135.4"
{
  "version": "16.0.4135.4",
  "found": true,
  "brand": "SQL Server 2022",
  "servicingLine": "16.0",
  "latestBuild": "16.0.4150.1",
  "buildsBehind": 2,
  "isLatest": false,
  "updatePackage": { "branch": "CU", "label": "CU13", "kbNumber": "KB...", "build": "16.0.4150.1", "newerThanThisBuild": true, ... },
  "securityFixMissing": true,
  "supportLevel": "Main",
  "supportEndsMainstream": "2028-01-11",
  "supportEndsExtended": "2033-01-11",
  "kbUrl": "https://...",
  "latestKbUrl": "https://..."
}

The values above only show the shape of the answer. A null means "not known". An unknown build is a normal answer (200, found false), never an error. buildsBehind counts the distinct known builds with the same brand, major and minor version and a higher build number, whatever their track (CU, GDR or service pack), so a build on the GDR track also counts the CUs as newer. securityFixMissing is never false by default: it is true or false only when the data can say.

Every known build

curl -H "X-SGU-Token: <key>" "https://sguapi.gatherio.net/api/v2/SQLVersions"

Get a free key

One request with your email address. The key is emailed to that address, and the mailbox is the proof that it is yours.

curl -X POST "https://sguapi.gatherio.net/api/v1/SQLVersionAPI/SignUp" -H "Content-Type: application/json" -d '{"email":"you@example.com"}'

The command is written for bash, zsh and PowerShell 7. In another shell, send the same JSON body with any HTTP tool.

  • Check your inbox. The key is never returned in the answer to the request. A valid address that is not rate limited gets a 202 with an empty body, whether or not it already has a key.
  • One key per person. An address with a +tag counts as the address without it. Signing up again re-sends the same key.
  • The free key gives 500 calls a day on all four calls above.
Answers of the sign-up request
AnswerMeaning
202Any valid address. Check the inbox.
400 InvalidEmailNot a plausible address (128 characters at most).
429 TooManyToo many requests from your network or for that address. The Retry-After header says when to try again.
503 UnavailableTry again later.

Plans

Two levels with the same calls. Pro has a higher daily limit.

Prices in US dollars. Monthly first; yearly is the cost of 10 months.
FreePro
Price$0$9 a month, or $90 a year (2 months free)
Calls a day50020,000
Calls includedAll four callsAll four calls
How you get the keySign up with your email: the key is emailed to youBuy it on this page: the API token and a curl example are emailed to you after payment
Get a free key

Pro is bought on this site by card through Stripe, and you do not need an account first. After payment we email the API token and a curl example to the address you give at checkout. See the products and pricing page for how to manage or cancel a subscription.

How calls are counted

One daily limit per key, the same for every call.

  • Every call counts as one against the key's daily limit, whichever of the four calls it is. The limit is per key, not per call.
  • The day resets at 00:00 UTC.
  • Over the limit you get a 429 with a Retry-After header (seconds until 00:00 UTC) and a JSON body naming the limit, the reset time and where to upgrade. A refused call is not counted.
  • The count is approximate. A key can get slightly more than its limit before the 429 starts.
HTTP 429, Retry-After: <seconds until 00:00 UTC>
{"error":"daily_limit","limit":500,"resetsUtc":"<next 00:00 UTC>","upgradeUrl":"..."}
Errors of every lookup call
StatusBodyMeaning
401Token Missing, Token Invalid or Token Expired or RevokedNo header, not one of our keys, or the key ended.
403Insufficient AccessThe key is valid but not for this call.
429daily_limitThe key used its calls for the UTC day.
400InvalidVersion (patch advisor)version is missing or not 3 or 4 dot-separated numbers.
503Unavailable (patch advisor)The data could not be read. Try again later.

What is sent

SQLVersionAPI never connects to your servers.

  • With every call: the build number you put in the request, and your key in the X-SGU-Token header. Your script reads the version from your own SQL Server and sends the number. Nothing else leaves your computer.
  • Your email address: only for the free key. It is used to email the key and to keep one key per person. A Pro buyer gives an email address at checkout, as for any purchase.
  • What we count: the number of calls each key makes each day, to apply the daily limit.
  • Payment: card details go to Stripe and are never seen or stored by us.

Read the full privacy policy.

How it compares

Today most people look a build up by hand on Microsoft's pages. Lifecycle APIs for software in general also exist. These figures are read from each vendor's own page; it is not a feature-by-feature comparison.

Prices and limits as published on each page on December 4, 2026. Re-check them on the vendor's page before you decide.
OptionPriceWhat the page says
SQLVersionAPI Free key: 500 calls a day. Pro: $9 a month for 20,000 calls a day. Built for SQL Server build numbers: support status, how many builds behind, the update to move to and whether a security fix is missing, from one call.
Microsoft's SQL Server build lists Free Web pages with the build number, release date and KB article for each SQL Server version, and a downloadable Excel workbook of builds and their support lifecycle stage for SQL Server 2005 through the current version. The page mentions no API, so a script has to read a page or the workbook.
endoflife.ai Free key: 50 requests a day. Starter $89 a month for 10,000 a day. Pro $299 a month for 100,000 a day. A general lifecycle API for 700+ products. Its page says a patch or build version resolves to its release line, and it does not name SQL Server among its examples.

Questions

Short answers to the things people ask first.

What is SQLVersionAPI?

A web API. You send a SQL Server build number and get back what it is, whether it is the latest build, how it stands on support, and what to update to. A second call lists every known build. It runs at https://sguapi.gatherio.net and you send your key in the X-SGU-Token header.

How do I get a free key?

Send your email address to the sign-up call (the curl command is above). The key is emailed to that address; the email is the check that the address is yours. There is one key per person, and signing up again re-sends the same key.

What does the patch advisor tell me?

For a build number it tells you the brand, the latest known build of that line, how many known builds are newer, the newest cumulative update or security update that applies with its KB article and download link, whether a newer security fix exists for that line, and when mainstream and extended support end. When the data cannot answer, for example for a build we do not know, the field is null instead of a guess.

What counts as a call?

Each call to any of the four endpoints counts as one against the key's daily limit, and the count restarts at 00:00 UTC. The count is approximate, so a key can get slightly more than its limit before the 429 starts.

What happens when I reach the limit?

The API answers 429 with a Retry-After header (the seconds until 00:00 UTC) and a JSON body that names the limit and the reset time. A refused call is not counted. Free is 500 calls a day and Pro is 20,000.

How much is Pro, and how do I buy it?

Pro is $9 a month, or $90 a year (two months free), for 20,000 calls a day. You buy it on this page by card through Stripe, with no account needed first. After payment we email the API token and a curl example to the address you give at checkout.

How many builds are listed, and how current is the list?

Currently 694 builds, from SQL Server 7 to 2025, kept current by our own jobs. A build that is not in the list gets an empty answer from the evaluation call and found false from the patch advisor, not an error.

What leaves my computer?

Only the build number you send, with your key. SQLVersionAPI does not connect to your servers: your script reads the version from your own SQL Server and sends the number. Your email address is sent only to get the free key.

Is it on a separate domain?

No. It runs on SGU's API host, https://sguapi.gatherio.net, the same host our other tools use.

Also from Solutions Group Unlimited: SQLParity, keep your SQL Servers the same and TaskPier, every scheduled task and SQL Agent job on one screen. All products and pricing are on Products & Services.

Know whether your SQL Servers are patched.

Start with a free key: 500 calls a day.

Get a free key

See our privacy policy.

An unhandled error has occurred. 🗙