Skip to content

Misleading information about REST API /search/code endpoint #42891

@simonpai

Description

@simonpai

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/rest/search/search?apiVersion=2022-11-28#search-code

What part(s) of the article would you like to see updated?

In the page, there is a sentence:

This endpoint can be used without authentication if only public resources are requested.

I believe this is a piece of text forgotten to be deleted, and the sample request is also wrong. If you try it out, it always gives you status 401, meaning that a token is truly mandatory for this endpoint.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamtriageDo not begin working on this issue until triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions