GPT Explorer
GPT Explorer · GPT Actions
SmartProxt General GPTs Search API
API for searching GPTs based on user input questions.
POST /api/v1/gptsai/searchSearch GPTsSubmits a user question to find matching GPTs.
GET /api/v1/gptsai/hottags/bycnt/{count}Retrieve Top Hot TagsGets the top N hottest tags in the GPTs domain, where N is specified by the user.
POST /api/v1/gptsai/searchtagSearch GPTs by TagsSearches for GPTs based on specified tags.
原始 API 定义
{
"openapi": "3.0.0",
"info": {
"title": "SmartProxt General GPTs Search API",
"version": "1.0.0",
"description": "API for searching GPTs based on user input questions."
},
"servers": [
{
"url": "https://gpts.gptsapp.io"
}
],
"paths": {
"/api/v1/gptsai/search": {
"post": {
"summary": "Search GPTs",
"description": "Submits a user question to find matching GPTs.",
"operationId": "searchGpts",
"tags": [
"GPTs Search"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"question": {
"type": "string",
"example": "What are the latest developments in GPTs?"
},
"top_n": {
"type": "integer",
"example": 3
}
}
}
}
}
},
"responses": {
"200": {
"description": "Successful response with a list of matching GPTs",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"example": 0
},
"message": {
"type": "string",
"example": "success"
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GptResponse"
}
}
}
}
}
}
}
}
}
},
"/api/v1/gptsai/hottags/bycnt/{count}": {
"get": {
"summary": "Retrieve Top Hot Tags",
"description": "Gets the top N hottest tags in the GPTs domain, where N is specified by the user.",
"operationId": "getTopHotTags",
"tags": [
"Hot Tags"
],
"parameters": [
{
"name": "count",
"in": "path",
"required": true,
"description": "Number of top hot tags to retrieve",
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "Successful response with the top hot tags",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"example": 0
},
"message": {
"type": "string",
"example": "success"
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TagWithHotDegree"
}
}
}
}
}
}
}
}
}
},
"/api/v1/gptsai/searchtag": {
"post": {
"summary": "Search GPTs by Tags",
"description": "Searches for GPTs based on specified tags.",
"operationId": "searchGptsByTags",
"tags": [
"GPTs Search"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"tag_names": {
"type": "array",
"items": {
"type": "string"
}
},
"page_size": {
"type": "integer"
},
"page": {
"type": "integer"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Successful response with a list of GPTs matching the tags",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"example": 0
},
"message": {
"type": "string",
"example": "success"
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GptResponse"
}
}
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"GptResponse": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"gizmo_id": {
"type": "string"
},
"description": {
"type": "string"
},
"lang": {
"type": "string"
},
"score": {
"type": "number",
"format": "float"
},
"rank": {
"type": "integer"
},
"tags": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Tag"
}
}
}
},
"Tag": {
"type": "object",
"properties": {
"tag_id": {
"type": "integer"
},
"tag_name": {
"type": "string"
},
"tag_type": {
"type": "string"
}
}
},
"TagWithHotDegree": {
"type": "object",
"properties": {
"tag_id": {
"type": "integer"
},
"tag_name": {
"type": "string"
},
"tag_type": {
"type": "string"
},
"hot_degree": {
"type": "integer"
}
}
}
}
},
"security": [
{
"ApiKeyAuth": []
}
],
"securitySchemes": {
"ApiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "Authorization"
}
}
}