Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
License Simple
Example:mit
Example:MIT License
Example:https://api.github.com/licenses/mit
Example:MIT
Example:MDc6TGljZW5zZW1pdA==
Response
License
Example:mit
Example:MIT License
Example:MIT
Example:https://api.github.com/licenses/mit
Example:MDc6TGljZW5zZW1pdA==
Example:http://choosealicense.com/licenses/mit/
Example:A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty.
Example:Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
Example:["commercial-use","modifications","distribution","sublicense","private-use"]
Example:["include-copyright"]
Example:["no-liability"]
Example: The MIT License (MIT) Copyright (c) [year] [fullname] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Example:true
This method returns the contents of the repository’s license file, if one is detected.
Similar to Get repository content, this method also supports custom media types for retrieving the raw license content or rendered license HTML.
Response
License Content
License Simple
The Markdown text to render in HTML.
The rendering mode. Can be either markdown
or gfm
.
Allowed values:markdowngfm
Default:markdown
Example:markdown
The repository context to use when creating references in gfm
mode. For example, setting context
to octo-org/octo-repo
will change the text #42
into an HTML link to issue 42 in the octo-org/octo-repo
repository.
Response
You must send Markdown as plain text (using a Content-Type
header of text/plain
or text/x-markdown
) to this endpoint, rather than using JSON format. In raw mode, GitHub Flavored Markdown is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.
Response