Broken deprecation link in GET /search/code response headers #192167
Replies: 2 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Good catch. The deprecation header is pointing to a blog post URL that doesn't exist yet, which kind of defeats the purpose of including deprecation metadata in the first place. Looking at the headers you shared, there are three pieces of info: the deprecation date (March 27, 2026), the sunset date (September 27, 2026), and the broken link. So it looks like GitHub is planning to deprecate certain fields from the The most likely scenario is that the engineering team added the deprecation headers to the API before the blog/changelog team published the corresponding post. It's happened before with other API deprecations, the headers ship first and the docs lag behind by a few days or sometimes longer. In the meantime, you can keep an eye on the actual changelog at https://github.blog/changelog/ and filter for API-related posts. The deprecation is probably about removing some of the legacy fields from the code search response (the old code search API has been slowly getting replaced by the new one). For practical purposes: your code won't break until the sunset date in September 2026. Once the blog post goes live it should clarify exactly which fields are going away and what the migration path looks like. You could also try hitting the new code search endpoint if you haven't already migrated. It uses a different response format and is the one GitHub is actively maintaining going forward. Reporting it here is the right move. The broken link is clearly a bug on their end, just a matter of the changelog post catching up to the API change. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
API
Body
The
GET /search/codeendpoint returns a deprecation URL in theLinkresponse header that leads to a 404 page.Broken URL: https://github.blog/changelog/2026-03-27-deprecation-of-api-search-code-fields
Navigating to it displays "Whoops, we haven't written that blog post yet!"
Reproduction
Make a request to
GET https://github.com/api/search/code?q=hello. The response includes:The rel="deprecation" link is expected to point to documentation about the deprecation but the target page doesn't exist. As a result, API consumers have no way to learn what fields are being deprecated or how to migrate.
Please either:
Beta Was this translation helpful? Give feedback.
All reactions