json-schema-org / json-schema-org/ecosystem

Get repo topics and created at date data from search results

Open
#11 7 comments 1 reaction 1 assignee View on GitHub

@adityajha2005 is already working on this.

Since Mar 7, 2025.

📈 Stats Status: In progress
Dominant language
JavaScript
Stars
8
Forks
23
PR merge metrics
No merged PRs in 30d

Description

The GitHub REST API Search endpoint, when searching for repositories, returns a lot more data than expected.

We don't actually need to make more requests to get back the Respository Topics or create date.

Using the data from the search result totally removes the need to do requests per repo.

This does require quite a change to the code, and attempting to modify such might want to wait till #10 is merged, or that PR might not even be needed now.

For the json-schema topic on Github (like a "tag" for repos, but tags are something else, so I guess they picked another word), there are under 2k results, and you can request 1k results per query with the search API. The response contains all the initial data required.

  • Change Search API call to ask for 1k results
  • Collect data required from the Search response
  • Do not do any additional API requests
  • Make sure data is still saved to file

Currently we aimed to have both the created at date and the first release date, but let's forgoe having the first release date, as that makes this more complicated, and we probably don't even need it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.