API Tools
GitHub API, HTTP requests, and search engine integrations.
9 modules
| Module | Description |
|---|---|
| Criar Issue GitHub | Criar nova issue em repositorio GitHub |
| Create GitHub Pull Request | Create a new pull request in a GitHub repository |
| Obter Repositorio GitHub | Obter informacoes sobre repositorio GitHub |
| Listar Issues GitHub | Listar issues de repositorio 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
Criar Issue GitHub
api.github.create_issue
Criar nova issue em repositorio 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: mainObter Repositorio GitHub
api.github.get_repo
Obter informacoes sobre repositorio GitHub
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
owner | string | Yes | - | Proprietario do repositorio (usuario ou organizacao) |
repo | string | Yes | - | Proprietario do repositorio (usuario ou organizacao) |
token | string | No | - | Nome do repositorio |
Output:
| Field | Type | Description |
|---|---|---|
status | string | Token de Acesso Pessoal GitHub (opcional mas recomendado) |
repo | object | Status da operacao (sucesso/erro) |
name | string | Status da operacao (sucesso/erro) |
full_name | string | Informacoes do repositorio |
description | string | Nome do item |
stars | number | Nome completo do repositorio |
forks | number | Descricao do item |
url | string | Buscar informacoes sobre repositorio GitHub |
Example: Example
owner: octocat
repo: Hello-WorldListar Issues GitHub
api.github.list_issues
Listar issues de repositorio 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 | Status da operacao |
data | array | Dados dos resultados da pesquisa |
count | number | Numero de resultados da pesquisa |
total_results | number | Contagem total de resultados |
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 | Codigo de status HTTP |
headers | object | Cabecalhos da resposta |
body | string | Corpo da resposta |
json | object | Resposta JSON (se aplicavel) |
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