text-match
media type. For more details about how to receive highlighted search results, see Text match metadata.q=ruby+is:featured
ruby
and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.curl --location --request GET 'https://api.github.com/search/topics?q='
{
"incomplete_results": true,
"items": [
{
"aliases": [
{
"topic_relation": {
"id": 0,
"name": "string",
"relation_type": "string",
"topic_id": 0
}
}
],
"created_at": "2019-08-24T14:15:22Z",
"created_by": "string",
"curated": true,
"description": "string",
"display_name": "string",
"featured": true,
"logo_url": "http://example.com",
"name": "string",
"related": [
{
"topic_relation": {
"id": 0,
"name": "string",
"relation_type": "string",
"topic_id": 0
}
}
],
"released": "string",
"repository_count": 0,
"score": 0,
"short_description": "string",
"text_matches": [
{
"fragment": "string",
"matches": [
{
"indices": [
0
],
"text": "string"
}
],
"object_type": "string",
"object_url": "string",
"property": "string"
}
],
"updated_at": "2019-08-24T14:15:22Z"
}
],
"total_count": 0
}
Authorization: Bearer ********************