How can I get Warranty info from command line of New Macbooks with Apple M1 chip With 10 characters Serial Number

This thread shows that I can get the warranty info of my macs from the command line

https://discussions.apple.com/thread/4942122


This is the command to get this warranty info

curl -o - "http://support-sp.apple.com/sp/product?cc=DHJP&lang=en_US"


Where "DHJP" is the last characters from the Serial Number.


Also, someone said that regarding the number of characters of the Serial Number, this string size changes too.


If the serial number of the system has 12 characters, the url uses the last 4.
If the serial number has 11 chracters, the url uses the last 3.


My new Macbook Pro 16" M1, has 10 characters Serial Number. And it does not work, no matter the size of the Serial Number I put in that URL.


Do you have any alternative website or URL that works with these Macbooks?



MacBook Pro (2020 and later)

Posted on Nov 8, 2021 10:21 AM

Reply
7 replies

Nov 8, 2021 12:56 PM in response to poauser

Try it without the -o switch and 4 characters. -o expects a filename to write to before the URL, but you are not passing any file.


curl "https://support-sp.apple.com/sp/product?cc=Q6LR&lang=en_US"

<?xml version="1.0" encoding="utf-8" ?><root><name>CPU Name</name><configCode>MacBook Air (M1, 2020)</configCode><locale>en_US</locale></root>


Or actually pass a file to it.


curl -o filename.xml "https://support-sp.apple.com/sp/product?cc=Q6LR&lang=en_US"

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100   142  100   142    0     0   1192      0 --:--:-- --:--:-- --:--:--  1290


The file will then contain the returned XML.

Nov 8, 2021 6:01 PM in response to poauser

Apple has discontinued all of those services. Some of them still work with older computers. Some of them don't work at all. For example, if you go to Apple > About this Mac > Resources > Specifications, it will always return a dead link. The server is still there, but Apple is scrambling the URL. And of course, this works only on an older computer. None of this works on a new MacBook Pro M1. All of the interesting links in Apple > About this Mac > Resources just dump you to the general Apple support page.


I think COVID has really done a number on Apple. I didn't notice it while I was using my old 2017 machine with Big Sur. But this new one with Monterey is just a mess. Yeah. It's fast all right. But it seems held together with duct tape. Well, maybe that's too strong. Duct tape I mean. Monterey is far more fragile.

Nov 9, 2021 8:29 AM in response to Phil0124

Phil0124 wrote:

It worked for me on a M1 MBA.

Those were the last models to have the serial code. Even thought that specific web service is functional for your computer, some of the other services accessible from that "Resources" link are broken.


Update: I just checked on my 2017 MacBook Pro. Only the "User Manual" link is broken now. The "Specifications" link is working again. I first reported the broken Specifications to Apple Support on June 19th, 2020. Of course, this is only for my 2017 machine. The 2021 computer sends all of those links to the general support page. I guess you can't say the links are broken, technically-speaking.

Nov 9, 2021 10:18 AM in response to Phil0124

Also, of note is that the "DHJP" serial portion returns a Mid 2011 27" iMac rather than an M1 MacBook Pro.

Are the serial numbers or at the very least the last 4 characters not unique anymore?


<?xml version="1.0" encoding="utf-8" ?><root><name>CPU Name</name><configCode>iMac (27-inch, Mid 2011)</configCode><locale>en_US</locale></root>


Nov 9, 2021 4:08 PM in response to Phil0124

Phil0124 wrote:

Most links there work for me, including Specifications.

That is because they must have fixed it sometime during the past couple of months.

The only one that does not seem to work is the one for the Manual, it just opens the general Manuals website.
I guess because there is no specific MBA manual, rather its the OS user guide, which has a specific link.

If you look carefully, it fills in the search string with the locale. That is clearly wrong.


Are the serial numbers or at the very least the last 4 characters not unique anymore?

As far as I know, the entire thing is unique now.


One thing you could check is to try booting your computer into a non-English language and then checking About this Mac. People did find that the name is being stored inside IOKit. EtreCheck now looks for it there if it is an unknown machine type. But if you could capture the network request under a foreign language, that would be illuminating.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can I get Warranty info from command line of New Macbooks with Apple M1 chip With 10 characters Serial Number

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.