Web Scrapper
Web Scraper API Documentation
Overview The Web Scraper API allows you to extract specific information from web pages using natural language prompts. It combines web scraping with optional Large Language Model (LLM) processing to provide structured data based on your requirements.
Cost
Cost per API call: 1 credit
Base URL
https://api.yetanotherapi.com/v1/llm-web-scrapper
Authentication
Authentication is required for all API requests. Use your API key in the x-api-key
header.
x-api-key: YOUR_API_KEY_HERE
Endpoints Scrape Web Page Scrapes a specified URL and extracts information based on a given prompt.
HTTP Method: POST
Endpoint: /
Request Headers
x-api-key
: YOUR_API_KEY_HEREContent-Type
: application/json
Request Body
url
: The URL of the web page to scrape.prompt
: The natural language prompt specifying the information to extract.use_llm
: A boolean value indicating whether to use LLM for processing.webhook
: (Optional) A webhook URL to send the response to.
Example Request
Response The API will attempt to process the scraped content and provide JSON before 20 seconds. If it is not processed within that time, a request ID will be returned, which can be used to call the following endpoint to get the output. The API also supports sending the response to a webhook URL if provided.
Example Response
Response Structure The API returns a JSON object with the following structure:
Example Response
Error Handling In case of errors, the API will return a JSON object with an error message and HTTP status code.
Example Error Response:
Rate Limiting Currently, there are no rate limits enforced during the beta phase. However, users should design their applications to handle potential rate limiting in the future.
Beta Version Notice This is a beta version of the API. Users may encounter occasional issues or bugs.
The beta release has limited scope and features.
Subscription plans will be introduced once the API is out of beta.
Not all websites are supported for scraping.
Support For additional questions or to report issues, please contact support at hey@manojlk.work.
Last updated