Github Search API: search for a file without giving the complete filename

503 Views Asked by At

I want to use the Github Search API to find all files that can be close to a given word. For example, if i search for https://api.github.com/search/code?q=COPY+in:file,path+repo:yvonndjamen/Endevor i will receive 6 items matching my request because i gave the word "COPY"

But if i do the same request with: https://api.github.com/search/code?q=CO+in:file,path+repo:yvonndjamen/Endevor
There will not be any answer.

Is there a way to solve this problem and make a research like with the Github File Finder?
Over there when i just type "C" i get lots of results and i want to perform something like that with the Search API.

I want to be able to search for a letter ("C") or two ("CO") and get results where the API find files with those letters.

0

There are 0 best solutions below