AskReddit
AskReddit · Actions GPT
Reddit Search API
Retrieves search results for a given query from Reddit
POST /searchRedditSearchContentSearch for content based on a query string
Schéma original API
{
"openapi": "3.1.0",
"info": {
"title": "Reddit Search API",
"description": "Retrieves search results for a given query from Reddit",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://shravankc.pythonanywhere.com"
}
],
"paths": {
"/search": {
"post": {
"description": "Search for content based on a query string",
"operationId": "RedditSearchContent",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "The search query string"
}
},
"required": [
"q"
]
},
"example": {
"q": "finbox"
}
}
}
},
"responses": {
"200": {
"description": "Successful search response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SearchResult"
}
}
}
}
}
}
}
},
"security": [
{
"bearerAuth": []
}
],
"deprecated": false
}
}
},
"components": {
"schemas": {
"SearchResult": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "The title of the search result"
},
"description": {
"type": "string",
"description": "The description or content of the result"
},
"topComment": {
"type": "string",
"description": "The top comment associated with the result"
},
"score": {
"type": "integer",
"description": "The score or rating of the comment"
}
}
}
},
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT",
"description": "Bearer token authentication"
}
}
}
}