API 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
Доступность
100,00%
30d · Вызовов: 92
Запросы
92
30 дн. · по неделям, последние недель: 12
Ответ
1,1s
медиана · 30d

Статус

Загрузка статуса...

Письма о сбоях этого эндпоинта

Все эндпоинты на странице статуса

Цены и поставщики

Цена API GitHub Issue comments: один API, поставщиков 2, и любой может заменить другого

Первым обслуживает самый дешёвый поставщик. Если он не отвечает, его заменяет следующий в том же вызове.

Вы платите
12,00 USD
1,20 USD/1 тыс. запросов, только за то, чем пользуетесь. Без ежемесячного тарифа.
Ваши первые запросы (83) бесплатны за счёт стартового баланса 0,10 USD.

Попробовать

Получите GitHub Issue comments одним запросом

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.
Открыть в
Пример ответа
Бесплатные запуски возвращают только первые результаты: 3. Пополните ключ, чтобы получить полный ответ.
{
  "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"
}

Полный справочник по параметрам и ответу: каждое поле, тип и пример для этого эндпоинта.

Справочник

Один запрос, один формат ответа.

Каждое поле, которое вы отправляете, и каждое поле, которое получаете, с реальным примером.

Проверено 2026-11-25 · доступность и задержка измерены за 30d

Тело запроса

JSON, отправляется на этот эндпоинт.

  • 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

    Курсор постраничной выдачи из nextCursor предыдущего ответа.

  • 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).

Вы отправляете. Небольшое тело JSON. Показанные значения это примеры, замените их своими.

Ответ

JSON, по одному примеру значения на поле.

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.

  • authorAssociationstringможет потребовать

    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.

  • authorIdstringможет потребовать

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

  • authorTypestringможет потребовать

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

  • bodystringможет потребовать

    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.

  • updatedUtcnumberможет потребовать

    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.

Вы получаете. Именованные типизированные поля в одном формате, какой бы источник ни ответил.

Вопросы и ответы

Об API GitHub Issue comments

AnyAPI GitHub Issue comments API возвращает данные GitHub в виде нормализованного JSON одним вызовом POST к /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 направляет каждый запрос по источникам (их 2) и автоматически переключается, если один из них отказывает. Это стоит от 1,20 USD за 1000 запросов, в долларах США, без подписки и без ежемесячного минимума. За последние 30 дней 100,0% вызовов GitHub Issue comments через AnyAPI завершились успешно, медианное время ответа 1,1 с, измерено вызовов: 92.

Это стоит от 1,20 USD за 1000 запросов, в долларах США, без подписки и без ежемесячного минимума. Вы пополняете один кошелёк в долларах США, и каждый вызов списывает с него. По некоторым неудавшимся запросам, оплаченным из кошелька, возникают расходы на обработку; мы передаём их по себестоимости, без наценки, а сумма списания указана в ответе с ошибкой.

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. Ответ это нормализованный JSON с тем же конвертом, что возвращает каждый эндпоинт AnyAPI, поэтому разбор второго эндпоинта это смена URL и ничего больше.

За последние 30 дней 100,0% вызовов GitHub Issue comments через AnyAPI завершились успешно, медианное время ответа 1,1 с, измерено вызовов: 92. Это собственные измерения AnyAPI по трафику через шлюз, пересчитываемые непрерывно, а не опубликованный целевой уровень обслуживания.

Да. Новый аккаунт AnyAPI стартует с бесплатным балансом 0,10 USD, карта не нужна. Этого хватает на 83 вызовов GitHub Issue comments по 0,0012 USD за каждый.

AnyAPI в том же запросе обращается к следующему из источников (их 2), начиная с самого дешёвого, поэтому отказ одного источника не ломает ваш вызов.

Отправьте запрос POST на https://api.getanyapi.com/v1/run/github.issue_comments с вашим ключом AnyAPI в заголовке "Authorization: Bearer" и входными данными в теле JSON. Один и тот же ключ и один и тот же кошелёк работают на каждом эндпоинте AnyAPI.

Нет. Вы пополняете один предоплаченный баланс AnyAPI в долларах США, и каждый запрос списывает с него. Ежемесячного тарифа и минимума нет, а один и тот же баланс оплачивает каждый эндпоинт AnyAPI.

Да. Установите @getanyapi/sdk из npm для TypeScript или getanyapi из pip для Python. Оба вызывают любой эндпоинт AnyAPI с одним и тем же ключом, а ещё подойдёт любой HTTP-клиент.

Да. Агент может подключиться к MCP-серверу AnyAPI по адресу https://api.getanyapi.com/mcp или создать собственный бесплатный пробный ключ одним POST без аутентификации на https://api.getanyapi.com/agent/signup и вызывать этот эндпоинт по HTTP.