Developer tools6 min readBy Purrkey teamUpdated

How to list GitHub issue comments from a URL

Get a URL's GitHub issue or pull request comments with author, repository relationship, reactions, and text

On this page

You have 25 GitHub pull request URLs on a triage dashboard and need the oldest-first discussion on each one to decide which threads deserve a maintainer reply. anyapi.github.issue_comments takes one issue or pull request URL and returns its comments as a page of rows

The deliverable is one table per sweep, with a row for each comment and a column you carry from your own input list. No run has been executed for this guide, so the values below are placeholders showing the shape, not findings

Example input and the worksheet design

Example URL, invented and to be swapped for a real one before you run anything:

issueUrl
(your issue or pull request URL)

The agent fills a table with these columns

authorauthorAssociationauthorTypereactionscreatedUtcbodyurlissueUrl
(login)OWNER, MEMBER, COLLABORATOR, CONTRIBUTOR, FIRST_TIME_CONTRIBUTOR, FIRST_TIMER or NONEUser, Bot or Organization(integer)(epoch seconds)(Markdown text)(comment URL)(the URL you submitted)

The submitted URL is not returned by the tool. It is the column you attach so that rows from 25 pull requests stay separable after you concatenate them, and so you can sort the sweep back into one block per thread

What the tool takes

url is required. The url pattern accepts a GitHub issue or pull request address. The call runs through POST /v1/runs with toolId anyapi.github.issue_comments

Four optional inputs sit alongside it. limit sets rows per page, defaults to 100 and accepts 1 to 100. cursor takes the nextCursor value from a previous response. since takes a date in YYYY-MM-DD format and keeps only comments updated on or after it. requireFields names output fields the request must be able to return, drawn from authorAssociation, authorId, authorType, body and updatedUtc

That last field has a price effect. When the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. The contract also says a field you name can still be absent on a comment that genuinely lacks it, and that a combination no single source returns together is refused as invalid input, with no charge. Check the current input schema in the catalog before you build a form around these names, rather than assuming nothing else is accepted

How to read the output and decide

found says whether the issue or pull request was found and has comments. When it is false, reason is present with the value not_found, and the contract describes that answer as a successful call, not an error. Record the row, mark it as empty discussion and move on

When found is true, data.comments holds the page in the order the comments were posted, and data.nextCursor holds the cursor for the continuation or null when there are no more pages. Timestamps in createdUtc and updatedUtc are UTC epoch seconds, so multiply by 1000 for a JS Date

Three fields carry the triage decision. authorAssociation gives the commenter's relationship to the repository as GitHub reports it: OWNER, MEMBER, COLLABORATOR, CONTRIBUTOR, FIRST_TIME_CONTRIBUTOR, FIRST_TIMER or NONE. reactions is the total reaction count for the comment. body is the comment text in Markdown, and the contract warns that one source returns it with HTML tags removed, so name body in requireFields when you need the exact Markdown

Use authorType to keep bots out of the reading queue, since it reports User, Bot or Organization. Then apply one rule across the sweep: mark a thread for a maintainer reply when a NONE or FIRST_TIMER author describes a failure that shows up on more than one pull request, and mark it skip when a COLLABORATOR has already answered the same point

The page limit sits at this step. Each call returns one page of 1 to 100 comments, so continue with nextCursor passed back as cursor until it comes back null. Review comments on pull request code lines are not included, so a code conversation that was resolved inline will be missing from data.comments even when the URL is a pull request

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list the comments
on the GitHub pull requests below and return a table.

Before running anything, check the current inputs and price of
anyapi.github.issue_comments in the Purrkey catalog. Call it once per URL
with limit 100, and follow nextCursor as cursor until it is null.

Return one table with author, authorAssociation, authorType, reactions,
createdUtc, body, url and issueUrl, sorted by issueUrl then createdUtc
ascending. Mark each issue reply or skip using authorAssociation and
reactions. If found is false, record reason not_found and move on.

(insert your GitHub issue or pull request URLs here)

Replace the example URL with your 25 pull request URLs before you run the sweep

Estimated tool cost

Prices from the Purrkey catalog, read November 12, 2026, price revision anyapi-catalog-2026-11-05. The unit is max_call, which the catalog defines as "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
Single issue check1 call x max price$0.0036 per call1$0.0036
Triage sweep across 25 pull requests25 calls x max price$0.0036 per call25$0.09

A pull request whose discussion runs past one page of 100 comments adds a call per extra page at the same ceiling. Model fees for the agent are not counted

Pull the first sweep

Run two or three URLs from your list before you commit to the full 25, so you can see how many threads come back with found: false and how long the pages run. The tool sits on the GitHub page at issue_comments

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

How do I get the comments on a GitHub issue from its URL?

Call anyapi.github.issue_comments with url set to the issue or pull request URL. The response returns a page of comments in the order they were posted, plus a nextCursor for the next page.

What inputs does anyapi.github.issue_comments take?

url is required. The optional inputs are limit (1 to 100, default 100), cursor taken from a previous response's nextCursor, since as YYYY-MM-DD, and requireFields naming output fields the request must be able to return.

Does the tool return pull request review comments on code lines?

No. Review comments on pull request code lines are not included. data.comments holds the thread comments in the order they were posted.

What does found false mean?

found: false means the issue or pull request was not found or has no comments, and reason carries the value not_found. The contract states this is a successful call, not an error.

How much does it cost to sweep 25 pull requests for comments?

25 calls at the ceiling of $0.0036 per call is at most $0.09. A single issue check is at most $0.0036. Model fees for the agent are not counted.

What does authorAssociation tell me?

It gives the commenter's relationship to the repository: OWNER, MEMBER, COLLABORATOR, CONTRIBUTOR, FIRST_TIME_CONTRIBUTOR, FIRST_TIMER or NONE. authorType separates User, Bot and Organization accounts.

Can requireFields raise the price?

Yes. The contract says naming fields the cheapest source cannot return lets a dearer source serve, and you are quoted and charged its price. Naming a combination no single source returns together is refused as invalid input, with no charge.

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