API di GitHub

GitHub Issue comments API

List the comments on a GitHub issue or pull request by its URL, oldest first, with each commenter's login, their relationship to the repository, reactions and the comment text.

POST/v1/run/github.issue_comments
Disponibilità
100,00%
30d · 92 chiamate
Richieste
92
30 g · settimanale, ultime 12 sett.
Risposta
1,1s
mediana · 30d

Stato

Caricamento dello stato...

Ricevi le email sui guasti di questo endpoint

Vedi tutti gli endpoint nella pagina di stato

Prezzi e provider

Prezzi dell'API GitHub Issue comments: una sola API, 2 provider intercambiabili

Serve per primo il provider più economico. Se fallisce, subentra il successivo nella stessa chiamata.

Paghi
12,00 USD
1,20 USD/1k richieste, solo per ciò che usi. Nessun piano mensile.
Le tue prime 83 richieste sono gratuite con il saldo iniziale di 0,10 USD.

Provalo

Ottieni GitHub Issue comments in una sola richiesta

requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `authorAssociation` or `body`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a comment that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Apri in
Risposta di esempio
Le esecuzioni gratuite restituiscono solo i primi 3 risultati. Ricarica una chiave per ottenere la risposta completa.
{
  "data": {
    "comments": [
      {
        "author": "Alex Rivera",
        "authorAssociation": "Alex Rivera",
        "authorAvatarUrl": "https://example.com/image.jpg",
        "authorId": "Alex Rivera",
        "authorType": "Alex Rivera",
        "body": "A short example description of this item.",
        "createdUtc": 12.5,
        "id": "a1b2c3d4",
        "reactions": 42,
        "updatedUtc": 12.5,
        "url": "https://example.com/page"
      }
    ],
    "nextCursor": "example"
  },
  "found": true,
  "reason": "not_found"
}

Riferimento completo di parametri e risposta - ogni campo, tipo ed esempio per questo endpoint.

Riferimento

Una richiesta, una sola forma di risposta.

Ogni campo che invii e ogni campo che ricevi, ciascuno con un esempio reale.

Ultima verifica 2026-11-25 · disponibilità e latenza misurate su 30d

Corpo della richiesta

JSON, inviato a questo endpoint.

  • urlstring

    https://github.com/openai/whisper/pull/1838

    URL of a GitHub issue or pull request, e.g. https://github.com/openai/whisper/pull/1838.

  • cursorstring

    Cursore di paginazione dal nextCursor di una risposta precedente.

  • limitinteger

    10

    Rows per page, 1-100 (GitHub's own page-size limit). Each call returns one full page of this size; use nextCursor for the next page.

  • requireFieldsarray

    Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `authorAssociation` or `body`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a comment that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.

  • sincestring

    Only comments updated on or after this date (YYYY-MM-DD).

Tu invii. Un piccolo corpo JSON. I valori mostrati sono esempi da sostituire con i tuoi.

Risposta

JSON, un valore di esempio per campo.

each commentdata.comments[]

Comments in the order they were posted. Review comments on pull request code lines are not included. Populated whenever the provider has data for the entity.

  • authorstring

    GitHub login of the commenter. Populated whenever the provider has data for the entity.

  • authorAssociationstringpuò richiedere

    The commenter's relationship to the repository, as GitHub reports it: OWNER, MEMBER, COLLABORATOR, CONTRIBUTOR, FIRST_TIME_CONTRIBUTOR, FIRST_TIMER or NONE.

  • authorAvatarUrlstring

    Avatar image URL of the commenter.

  • authorIdstringpuò richiedere

    GitHub's numeric user id of the commenter, as a string.

  • authorTypestringpuò richiedere

    Account type of the commenter: User, Bot or Organization.

  • bodystringpuò richiedere

    Comment text in Markdown. One source returns it with HTML tags removed; name body in requireFields for the exact Markdown.

  • createdUtcnumber

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • idstring

    GitHub's numeric comment id, as a string.

  • reactionsinteger

    Total number of reactions of every kind.

  • updatedUtcnumberpuò richiedere

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • urlstring

    Canonical GitHub URL of the comment. Populated whenever the provider has data for the entity.

datadata

The page of comments, or null when not found.

  • nextCursorstring

    Opaque cursor for the next page of comments, or null when there are no more. Pass it back as cursor to continue.

top level
  • foundboolean

    Whether the issue or pull request was found and has comments.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Tu ricevi. Campi con nome e tipo nella stessa struttura, qualunque fonte risponda.

FAQ

Sull'API GitHub Issue comments

L'API GitHub Issue comments di AnyAPI restituisce dati GitHub come JSON normalizzato da una sola chiamata POST a /v1/run/github.issue_comments. List the comments on a GitHub issue or pull request by its URL, oldest first, with each commenter's login, their relationship to the repository, reactions and the comment text. AnyAPI instrada ogni richiesta su 2 fonti e passa automaticamente a un'altra quando una fallisce. Costa da 1,20 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 100,0% delle chiamate GitHub Issue comments tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,1 secondi su 92 chiamate misurate.

Costa da 1,20 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Ricarichi un portafoglio in USD e ogni chiamata lo scala. Alcune richieste fallite finanziate dal portafoglio comportano costi di elaborazione che trasferiamo al costo, senza ricarico; la risposta di errore mostra l'importo addebitato.

List the comments on a GitHub issue or pull request by its URL, oldest first, with each commenter's login, their relationship to the repository, reactions and the comment text. La risposta è JSON normalizzato con la stessa busta che restituisce ogni endpoint AnyAPI, quindi analizzare un secondo endpoint significa cambiare l'URL e nient'altro.

Negli ultimi 30 giorni, il 100,0% delle chiamate GitHub Issue comments tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,1 secondi su 92 chiamate misurate. Sono misurazioni di AnyAPI sul traffico che passa dal gateway, ricalcolate di continuo, non un obiettivo di livello di servizio pubblicato.

Sì. Un nuovo account AnyAPI parte con 0,10 USD di saldo gratuito e senza bisogno di carta, che copre 83 chiamate GitHub Issue comments a 0,0012 USD ciascuna.

AnyAPI interroga la successiva delle sue 2 fonti nella stessa richiesta, partendo dalla più economica, quindi una fonte che cade non fa fallire la tua chiamata.

Invia una richiesta POST a https://api.getanyapi.com/v1/run/github.issue_comments con la tua chiave AnyAPI in un header "Authorization: Bearer" e l'input come corpo JSON. La stessa chiave e lo stesso portafoglio funzionano su ogni endpoint AnyAPI.

No. Aggiungi dollari statunitensi a un unico saldo prepagato AnyAPI e ogni richiesta lo scala. Non c'è un piano mensile né un minimo, e lo stesso saldo paga ogni endpoint AnyAPI.

Sì. Installa @getanyapi/sdk da npm per TypeScript o getanyapi da pip per Python. Entrambi chiamano ogni endpoint AnyAPI con la stessa chiave, e funziona anche qualsiasi client HTTP.

Sì. Un agente può collegarsi al server MCP di AnyAPI su https://api.getanyapi.com/mcp, oppure creare da solo la propria chiave di prova gratuita con un POST non autenticato a https://api.getanyapi.com/agent/signup e chiamare questo endpoint via HTTP.