zkemail/archive.prove.email

Domain search API not working, getting 404 for every request

Closed this issue · 4 comments

Hello, I am trying to use domain search API but I am getting 404 for every request.

e.g.

curl "https://archive.prove.email/api/domains/ethereum.org"

response

<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="image" href="/proof_of_email_logo_cropped.png"/><link rel="stylesheet" href="/_next/static/css/1ac6b0b427da76f5.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-5b3495fa71147d79.js"/><script src="/_next/static/chunks/e6e143be-a721a6d908214884.js" async=""></script><script src="/_next/static/chunks/660-894c610d58a4ea30.js" async=""></script><script src="/_next/static/chunks/main-app-9a76cc0da00b0ebd.js" async=""></script><script src="/_next/static/chunks/321-2f81f4d6fd9d4dee.js" async=""></script><script src="/_next/static/chunks/app/layout-14361b75bac1bcfc.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>DKIM Archive</title><meta name="description" content="DKIM archive website"/><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script></head><body class="__className_aaf875" style="margin:0;overflow-y:scroll"><header style="background:#fcfdfe;padding:0.5rem;border-bottom:1px solid #aaa;display:flex"><a href="/" class="defaultcolor" style="display:flex;font-weight:600"><img src="/proof_of_email_logo_cropped.png" alt="Proof of Email logotype" style="width:2.5rem;padding-right:0.5rem"/>DKIM Archive</a></header><main style="margin:0.5rem;align-items:center;display:flex;flex-direction:column"><div style="max-width:50rem"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div></div></main><script src="/_next/static/chunks/webpack-5b3495fa71147d79.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/_next/static/css/1ac6b0b427da76f5.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"3:I[85921,[],\"\"]\n5:I[59986,[],\"\"]\n6:I[43582,[],\"\"]\n7:I[33808,[\"321\",\"static/chunks/321-2f81f4d6fd9d4dee.js\",\"185\",\"static/chunks/app/layout-14361b75bac1bcfc.js\"],\"NextAuthProvider\"]\nd:I[3765,[],\"\"]\n8:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n9:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\na:{\"display\":\"inline-block\"}\nb:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\ne:[]\n"])</script><script>self.__next_f.push([1,"0:[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/1ac6b0b427da76f5.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"$L3\",null,{\"buildId\":\"C9FyFyb8njb6tGMyxdS5u\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/api/domains/ethereum.org\",\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L4\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]]],null],null]},[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"$L7\",null,{\"children\":[\"$\",\"body\",null,{\"className\":\"__className_aaf875\",\"style\":{\"margin\":0,\"overflowY\":\"scroll\"},\"children\":[[\"$\",\"header\",null,{\"style\":{\"background\":\"#fcfdfe\",\"padding\":\"0.5rem\",\"borderBottom\":\"1px solid #aaa\",\"display\":\"flex\"},\"children\":[[\"$\",\"a\",null,{\"href\":\"/\",\"className\":\"defaultcolor\",\"style\":{\"display\":\"flex\",\"fontWeight\":600},\"children\":[[\"$\",\"img\",null,{\"src\":\"/proof_of_email_logo_cropped.png\",\"alt\":\"Proof of Email logotype\",\"style\":{\"width\":\"2.5rem\",\"paddingRight\":\"0.5rem\"}}],\"DKIM Archive\"]}],null]}],[\"$\",\"main\",null,{\"style\":{\"margin\":\"0.5rem\",\"alignItems\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"maxWidth\":\"50rem\"},\"children\":[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$8\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$9\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$a\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$b\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}]}]]}]}]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$Lc\"],\"globalErrorComponent\":\"$d\",\"missingSlots\":\"$We\"}]]\n"])</script><script>self.__next_f.push([1,"c:[[\"$\",\"meta\",\"0\",{\"name\":\"viewp100  8385    0  8385    0     0  23753      0 --:--:-- --:--:-- --:--:-- 23753IM Archive\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"DKIM archive website\"}],[\"$\",\"meta\",\"4\",{\"name\":\"next-size-adjust\"}]]\n4:null\n"])</script></body></html>

Thanks for reporting! You may have read some incorrect or outdated instructions, because the api/domain endpoint has been removed. Feel free to share where you saw it.

You can check the latest specification here: https://archive.prove.email/api-explorer

Try this command instead:
curl -X 'GET' 'https://archive.prove.email/api/key?domain=ethereum.org' -H 'accept: application/json'

(or simply curl 'https://archive.prove.email/api/key?domain=ethereum.org')

Oh yeah that works , do you mind if I update the doc with the new syntax? it will be helpful :)

Go for it! We welcome contributions :)

Oh yeah that works , do you mind if I update the doc with the new syntax? it will be helpful :)

fixed by #104