Scrape content from a given URL and return the page title, content chunks, and character count.
Request Body Parameters:
- url (str): The URL to scrape content from.
Example Request Payload:
{
"url": "https://example.com"
}
Returns:
- 200 OK: A JSON object containing the scraped data.
- 400 Bad Request: If the URL is missing or invalid.
- 500 Internal Server Error: If an error occurs during the scraping process.
Example Response (200 OK):
{
"data": {
"page_title": "Example Title",
"content_chunks": ["chunk1", "chunk2"],
"total_chars": 1024
}
}
Example Response (400 Bad Request):
{
"error": "URL not provided"
}
Example Response (500 Internal Server Error):
{
"error": "Failed to scrape URL: "
}
Use this tool to search on Google using ScraperAPI and returns status code and either search results or error string.
The `num` parameter cannot be more than 10 per request. If more results are required,
perform multiple searches incrementing the `start` value by 10 for each.
Use this tool to search on Google using Custom Search API and returns status code and either search results or error string.
The `num` parameter cannot be more than 10. If more results are required, perform multiple searches incrementing the `start` value by 10 for each.
Request Body Parameters:
- query (str): Required, this is the search query. Convert the query into a concise 3-4 word Google search term. Ex: "Hotels in New York"
- num (int): Required, number of results to fetch (max 10 per request).
- start (int): Required, the starting index for retrieving results, typically increments by 10.
- filter (str): Optional, site filter (e.g., "example.com").
Example Request Payload:
{
"query": "Hotels in New York",
"num": 10, # get 10 results
"start": 1 # Get results from first page
}
Example Response (200 OK):
{
"data": {
"results": [
{
"title": "Example Title",
"link": "https://example.com",
"snippet": "Example snippet text."
}
],
"total_results": 1
}
}