I have the following search term
navigator.geolocation.getCurrentPosition
which return 271,769 code results, how I can return the code results number by using github API
I have the following search term
navigator.geolocation.getCurrentPosition
which return 271,769 code results, how I can return the code results number by using github API
Copyright © 2021 Jogjafile Inc.
You can use the GitHub Search API to search code. More precisely, the following endpoint:
Since you are only interested in the total number, you can set the
per_pageparameter to 1 in order to make the the result smaller. The number of results is returned in the response astotal_count:Example using the GitHub command line tool: