API Tools
GitHub API, HTTP requests, and search engine integrations.
9 modules
| Module | Description |
|---|---|
| Tạo GitHub Issue | Tạo issue mới trong repository GitHub |
| Create GitHub Pull Request | Create a new pull request in a GitHub repository |
| Lấy Repository GitHub | Lấy thông tin về repository GitHub |
| Liệt kê GitHub Issues | Liệt kê issues từ repository GitHub |
| List GitHub Repositories | List repositories for a GitHub user or the authenticated user |
| Google Search (API) | Use Google Custom Search API to search keywords |
| HTTP GET Request | Send HTTP GET request to any URL |
| HTTP POST Request | Send HTTP POST request to any URL |
| Google Search (SerpAPI) | Use SerpAPI to search keywords (100 free searches/month) |
Modules
Tạo GitHub Issue
api.github.create_issue
Tạo issue mới trong repository GitHub
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
owner | string | Yes | - | Repository owner |
repo | string | Yes | - | Repository name |
title | string | Yes | - | Issue title |
body | text | No | - | Issue description (Markdown supported) |
labels | array | No | - | Issue labels |
assignees | array | No | - | GitHub usernames to assign |
token | string | Yes | - | GitHub Personal Access Token (required for creation) |
Output:
| Field | Type | Description |
|---|---|---|
status | string | Operation status (success/error) |
issue | object | Issue information |
number | number | Issue or PR number |
url | string | URL address |
Example: Example
owner: myorg
repo: myproject
title: Bug: Login fails
body: Users cannot log in after the latest deployment.
labels: ["bug", "urgent"]Create GitHub Pull Request
api.github.create_pr
Create a new pull request in a GitHub repository
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
owner | string | Yes | - | Repository owner |
repo | string | Yes | - | Repository name |
title | string | Yes | - | Pull request title |
body | text | No | - | Pull request description (Markdown supported) |
head | string | Yes | - | The branch that contains your changes |
base | string | No | main | The branch you want to merge into |
draft | boolean | No | False | Create as draft pull request |
token | string | Yes | - | GitHub Personal Access Token (required for creation) |
Output:
| Field | Type | Description |
|---|---|---|
status | string | Operation status (success/error) |
pr | object | Pull request information |
number | number | Pull request number |
url | string | Pull request URL |
Example: Example
owner: myorg
repo: myproject
title: Add user authentication
body: Implements OAuth2 login flow with Google and GitHub providers.
head: feature/auth
base: mainLấy Repository GitHub
api.github.get_repo
Lấy thông tin về repository GitHub
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
owner | string | Yes | - | Chủ sở hữu repository (username hoặc tổ chức) |
repo | string | Yes | - | Chủ sở hữu repository (username hoặc tổ chức) |
token | string | No | - | Tên repository |
Output:
| Field | Type | Description |
|---|---|---|
status | string | GitHub Personal Access Token (tùy chọn nhưng khuyến nghị) |
repo | object | Trạng thái thao tác (success/error) |
name | string | Trạng thái thao tác (success/error) |
full_name | string | Thông tin repository |
description | string | Tên của mục |
stars | number | Tên đầy đủ repository |
forks | number | Mô tả mục |
url | string | Lấy thông tin về repository GitHub |
Example: Example
owner: octocat
repo: Hello-WorldLiệt kê GitHub Issues
api.github.list_issues
Liệt kê issues từ repository GitHub
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
owner | string | Yes | - | Repository owner |
repo | string | Yes | - | Repository name |
state | select (open, closed, all) | No | open | Issue state filter |
labels | string | No | - | Filter by labels (comma-separated) |
limit | number | No | 30 | Maximum number of issues to fetch |
token | string | No | - | GitHub Personal Access Token |
Output:
| Field | Type | Description |
|---|---|---|
status | string | Operation status (success/error) |
issues | array | The issues |
count | number | Number of items |
Example: Example
owner: facebook
repo: react
state: open
limit: 10List GitHub Repositories
api.github.list_repos
List repositories for a GitHub user or the authenticated user
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
owner | string | Yes | - | GitHub username, or "me" for authenticated user |
type | select (all, owner, member) | No | all | Filter repositories by type |
sort | select (created, updated, pushed, full_name) | No | updated | Sort repositories by field |
limit | number | No | 30 | Maximum number of repositories to return |
token | string | No | - | GitHub Personal Access Token (optional, required for private repos and "me") |
Output:
| Field | Type | Description |
|---|---|---|
status | string | Operation status (success/error) |
repos | array | List of repositories |
count | number | Number of repositories returned |
Example: Example
owner: octocat
sort: updated
limit: 10Example: Example
owner: me
type: owner
sort: pushedGoogle Search (API)
core.api.google_search
Use Google Custom Search API to search keywords
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
keyword | string | Yes | - | Search keyword or query |
limit | number | No | 10 | Maximum number of results |
Output:
| Field | Type | Description |
|---|---|---|
status | string | Trạng thái thao tác |
data | array | Dữ liệu kết quả tìm kiếm |
count | number | Số kết quả tìm kiếm |
total_results | number | Tổng số kết quả |
Example: Search Python tutorials
keyword: python tutorial
limit: 10HTTP GET Request
core.api.http_get
Send HTTP GET request to any URL
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | Yes | - | URL to navigate to |
headers | object | No | {} | HTTP request headers as key-value pairs |
params | object | No | {} | URL query string parameters as key-value pairs |
timeout | number | No | 30 | Maximum time to wait in seconds |
verify_ssl | boolean | No | True | Verify SSL certificates |
Output:
| Field | Type | Description |
|---|---|---|
status_code | number | Mã trạng thái HTTP |
headers | object | Headers phản hồi |
body | string | Nội dung phản hồi |
json | object | Phản hồi JSON (nếu có) |
Example: Fetch API data
url: https://api.github.com/users/octocatHTTP POST Request
core.api.http_post
Send HTTP POST request to any URL
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | Yes | - | URL to navigate to |
headers | object | No | {} | HTTP request headers as key-value pairs |
body | string | No | - | Text content to process |
json | any | No | - | HTTP request body content (JSON, text, or form data) |
timeout | number | No | 30 | Maximum time to wait in seconds |
verify_ssl | boolean | No | True | Verify SSL certificates |
Output:
| Field | Type | Description |
|---|---|---|
status_code | number | HTTP status code |
headers | object | HTTP headers |
body | string | Response body content |
json | object | Parsed JSON response data |
Example: Post JSON data
url: https://api.example.com/users
json: {"name": "John", "email": "john@example.com"}Google Search (SerpAPI)
core.api.serpapi_search
Use SerpAPI to search keywords (100 free searches/month)
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
keyword | string | Yes | - | Search keyword or query |
limit | number | No | 10 | Maximum number of results |
Output:
| Field | Type | Description |
|---|---|---|
status | string | Operation status (success/error) |
data | array | Output data from the operation |
count | number | Number of items |
Example: Search with SerpAPI
keyword: machine learning
limit: 10