urlstringwymagane
URL of a GitHub issue or pull request, e.g. https://github.com/openai/whisper/pull/1838.
https://api.sandbase.ai/v1/api/github/issue-commentsList 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.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "github/issue-comments", "url": "https://github.com/openai/whisper/pull/1838", "limit": 10}'
The result is returned in outputs[0].data. Lookups that find nothing fail with a not-found error.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | URL of a GitHub issue or pull request, e.g. https://github.com/openai/whisper/pull/1838. |
cursor | string | No | Pagination cursor from a previous response's nextCursor. |
limit | integer | No | 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. Default 100. |
requireFields | array | No | 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 |
since | string | No | Only comments last-active on or after this date (YYYY-MM-DD). |
Billed at the actual cost of each call, about $0.0012 per request. A call can cost more when the first data source fails and another one answers. Failed calls and lookups that find nothing are not charged.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/github/issue-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://github.com/openai/whisper/pull/1838",
"limit": 10
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
urlstringwymaganeURL of a GitHub issue or pull request, e.g. https://github.com/openai/whisper/pull/1838.
limitintegerRows 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.
Domyślnie: 100
sincestringOnly comments last-active on or after this date (YYYY-MM-DD).
cursorstringPagination cursor from a previous response's nextCursor.
requireFieldsarrayOptional; 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.
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
GitHub Issue CommentsTo API GitHub | Od $0.0012 za wywołanie | JSON |
GitHub | Od $0.0012 za wywołanie | JSON |
GitHub | Od $0.0012 za wywołanie | JSON |
GitHub | Od $0.0012 za wywołanie | JSON |
GitHub | Od $0.0012 za wywołanie | JSON |
GitHub | Od $0.0012 za wywołanie | JSON |
Przewodniki:Best GitHub API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/github/issue-comments z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
Od $0.0012 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: url (string). Opcjonalne: limit (integer), since (string), cursor (string) i requireFields (array). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).
Nie. GitHub Issue Comments działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API GitHub.