Subscribe on AWS Marketplace
Code sample
API endpoint: /crawl
Troubleshooting
Navigate to our product listing on the AWS Marketplace. Select the "View purchase options" button to proceed.
On the following page, click the "Subscribe" button to initiate the subscription process.
After subscribing, you will need to set up your account on our platform. Do this by clicking the "Set up your account" link provided.
You will be directed to the registration page. Here, fill in your account details in the provided fields. Once you have entered all necessary information, click the 'Subscribe' button to proceed.
Upon successful registration, your unique API key will be displayed. It is crucial to store this key in a secure location for future use.
The code samples below calls the '/crawl' endpoint in order to retrieve the current price of the iPhone 17 on Amazon. It uses a proxy from the US.
var client = new HttpClient(); var request = new HttpRequestMessage(HttpMethod.Post, "https://scraper-api.silverlining.cloud/v1/crawl"); request.Headers.Add("x-api-key", "<YourApiKey>"); var content = new StringContent("{\n \"url\": \"https://www.amazon.com/Apple-MG464LL-A-iPhone-Black/dp/B0FQFM95MD\",\n \"action\": \"Extract the price of the iPhone and return it as a JSON in this format: {'price': <price>}\"\n}", null, "application/json"); request.Content = content; var response = await client.SendAsync(request); response.EnsureSuccessStatusCode(); Console.WriteLine(await response.Content.ReadAsStringAsync());
This API Playground for our Agentic Web Scraper allows you to test the service in real-time. Simply enter the URL you want to scrape and a natural language instruction for the data you need, and you’ll receive the extracted JSON response directly from the API. Whether you’re integrating web scraping into your application or just experimenting with the AI's capabilities, the playground provides a user-friendly interface to see real-time results instantly.
Please note that the API endpoint can take up to 180 seconds to complete.
"To see the result, please send a request to the API."
URL endpoint: https://scraper-api.silverlining.cloud/v1/crawl Method: POST "header": { "x-api-key": STRING, "Content-Type": "application/json" } "body": { "url": STRING, "action": STRING, "proxy_country_code": STRING }
Required
"url": The full URL of the web page you want to scrape. The URL must be accessible from the public internet. Must include the protocol (http:// or https://). Example: "https://www.silverlining.cloud/products"
"action": A natural language instruction describing the data you want to extract from the page. The AI model will use this instruction to visually identify and return the requested information in a JSON format. Be as specific as possible. A good example could look like: "Extract all product titles and product description from the 'All products by SilverLining.Cloud' section in this format: ['product1': {'title': '<title>', 'description': '<description>'}]"
Optional
"proxy_country_code": The two-letter ISO 3166-1 alpha-2 country code for the proxy server. Use this to make the request appear as if it's coming from a specific country, which is useful for accessing geo-restricted content. If this parameter is omitted, the request will be made from the US.
Response: "body": { "input": { "url": STRING, "action": STRING, "proxy_country_code": STRING }, "metadata": { "cookie_banner_accepted": BOOLEAN, "full_page_screenshot": STRING }, "data_extracted": OBJECT }
Input Object
This object simply reflects the parameters you sent in your request. It's useful for logging and confirming what instructions the API executed.
Metadata Object
This object provides additional information about the crawling process.
Data Extracted Object
This is the main payload containing the data you requested.
"message": "Invalid Input: The request contains incorrectly formatted parameters"
This error message means that the body parameters you have passed are malformed. Please follow the instructions given in the endpoint descriptions. Common issues include forgetting to add a comma (',') after every parameter line or missing a parenthesis somewhere.
"message": "Endpoint request timed out"
You receive this error message when the code execution exceeds the maximum timeout of 170 seconds. Try to extract data from a smaller web page.
How can I see my API usage and associated costs?
To view your past API usage, refer to the chapter about the /usage endpoint. This endpoint provides a CSV export of all API requests made.
To check the associated costs of your API usage, use the AWS Billing dashboard:
How can I cancel my subscription?
To cancel your subscription, follow these steps:
For more detailed instructions, visit the AWS Marketplace Buyer Guide at https://docs.aws.amazon.com/marketplace/latest/buyerguide/cancel-subscription.html.