Chat with Website
Chat with Website · GPT 작업
API Ninjas Web Scraper
This action allows you to scrape web pages via the API Ninjas Web Scraper.
GET /webscraperScrape a webpage
원본 API 스키마
{
"openapi": "3.1.0",
"info": {
"title": "API Ninjas Web Scraper",
"description": "This action allows you to scrape web pages via the API Ninjas Web Scraper.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.gptpersonalize.com/v1"
}
],
"paths": {
"/webscraper": {
"get": {
"summary": "Scrape a webpage",
"operationId": "scrapeWebpage",
"parameters": [
{
"name": "url",
"in": "query",
"description": "The URL of the web page to scrape",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "text_only",
"in": "query",
"description": "Whether to only extract visible text (ignores HTML tags and metadata). Must be either true or false.",
"required": true,
"schema": {
"type": "boolean"
}
},
{
"name": "user_agent",
"in": "query",
"description": "User-Agent string to use in the request header.",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response with scraped data"
},
"default": {
"description": "An error response"
}
},
"security": [
{
"ApiKeyAuth": []
}
]
}
}
},
"components": {
"securitySchemes": {
"api_key": {
"type": "apiKey",
"name": "X-Api-Key",
"in": "header"
}
},
"schemas": {}
}
}