Developer tools5 min readBy Purrkey teamUpdated

How to inspect a GitHub repository's metadata

Get a GitHub repository's stars, forks, language, topics, license, and timestamps from its URL, then compare 30 candidates for a shortlist

On this page

You have 30 candidate open-source repositories to evaluate for a build-versus-buy decision and need a shortlist of maintained projects. Fetch metadata for each repository URL with anyapi.github.repository, then compare the fields in one worksheet

The worksheet is the deliverable. No run has been executed for this guide, so the rows and values below are a design, not a result. Values here are placeholders showing the shape

Example input and worksheet design

Example URL, with an invented owner and repository name:

LabelRepository URL
Examplehttps://github.com/owner/repository

Replace that URL with a real GitHub repository URL. The tool takes one URL per call

The worksheet has one row per candidate and these columns:

fullNamestarsforkslanguagetopicslicensepushedAtarchivedopenIssuesshortlist note
(owner/name)(number)(number)(language or null)(list)(license or null)(ISO 8601)(true or false)(number)(reason to keep or drop)

Use the shortlist note for your own comparison. The tool does not write that note; it supplies the metadata fields that sit next to it. Keep the table in the order of your candidate list, so a row that returns no repository still has a place in the worksheet

What the tool takes

anyapi.github.repository takes a required url field. Pass the public GitHub repository URL, such as a link copied from the repository page. The contract lists url as the required property. The input is one repository URL per call

The fetch step returns a repository record when found is true. When no repository is found for the URL, found is false, data is null, and reason is not_found. That not-found answer is a successful call, not an error, and costUsd reflects the actual charge

How to read the output for a shortlist

Start with found. If it is false, leave the metadata columns empty and put the reason in the shortlist note. The call remains a successful call under the rule above

For a found repository, data holds the record. fullName gives the owner/name form. stars and forks are counts. language is the primary programming language or null if undetected. topics is an array of topic tags. license is the license name or null if unlicensed. pushedAt is the last push timestamp in ISO 8601. archived says whether the repository is archived. openIssues counts open issues and pull requests

Those fields fill the comparison table. A null language means undetected, and a null license means unlicensed. Both are valid values for a found record. Use one shortlist note per row, with a phrase such as keep for review or drop because archived

Other record fields include createdUtc, updatedAt, defaultBranch, fork, private, size, watchers, description, homepage, id, name, owner, profileUrl, url, and avatarUrl. The shortlist columns here use the fields above. Add a field to the worksheet when your comparison needs it. createdUtc is a UTC epoch timestamp in seconds, and updatedAt is the last metadata update timestamp

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch metadata
for the 30 candidate GitHub repository URLs in your candidate list. Check the
current inputs and price of anyapi.github.repository before running
anything. Call the tool once per URL and return a table with fullName,
stars, forks, language, topics, license, pushedAt, archived, openIssues
and a shortlist note. Keep rows where found is false and data is null,
and mark them as not found with the reason. Do not invent values.

The example URL in the worksheet is invented, so it may return a not-found answer. Use real repository URLs for the 30 candidates. The prompt asks for the current price before running, so the cost table below is a planning estimate rather than a locked quote

Estimated tool cost

Prices from the Purrkey catalog, read November 12, 2026. The tool is listed as max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings. Agents call it through POST /v1/runs with toolId anyapi.github.repository. Agent model fees are not counted

StepFormulaUnit pricePlanned quantityTotal
Inspect one repository1 call x max price$0.0012 per call1$0.0012
Compare 30 candidate repositories30 calls x max price$0.0012 per call30$0.036

A not-found answer is a successful call, so the 30-call plan covers 30 attempted URLs. The two rows are cost designs; they are not settled charges

Fetch the first repository

Open the GitHub repository metadata tool to check the current listing and run the first URL

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with GitHub.
Explore GitHub tools and pricing

FAQ

What does anyapi.github.repository take?

It takes a required url field with a GitHub repository URL.

What fields should I compare for each repository?

Use fullName, stars, forks, language, topics, license, pushedAt, archived, openIssues and a shortlist note. These fields come from the repository record when found is true.

What happens when a repository is not found?

The tool returns found: false with data: null and reason: not_found. This is a successful call, not an error, and costUsd reflects the actual charge.

How much does it cost to inspect 30 repositories?

At the listed max_call price of $0.0012 per call, 30 calls are at most $0.036. One call is at most $0.0012.

Can I use the example URL in the worksheet?

The example URL is invented and may return a not-found answer. Replace it with a real GitHub repository URL for your 30 candidates.

What should the shortlist note contain?

Use the note for your own comparison, such as keep for review or drop because archived. The tool does not write the note; it supplies the metadata fields next to it.

Next step

Try this with GitHub

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See GitHub tools

Share this article