Using Parsers
Parsers are ideal when you need to extract data at scale in a recurrent way from the same websites. This approach is cost-efficient and fast as it extracts data directly from static HTML/CSS selectors and returns only the required JSON.
We offer pre-built parsers for popular websites and can create custom parsers for your specific needs. We can also enable your account to pass custom parsers directly to the APIs.
Pre-Built Parsers
We offer several pre-built parsers for popular websites:
- Google Search:
@olostep/google-search
- Amazon Product:
@olostep/amazon-it-product
- Linkedin Profile: get in touch with us to get the parser ID
- TikTok data extraction: get in touch with us to get the parser ID
- Google News: get in touch with us to get the parser ID
- Google Maps: get in touch with us to get the parser ID
Example Usage
Response Format
When you make a request to the Olostep API with the parser format, you’ll receive a JSON response like the example below:
The response contains:
- Basic request information:
id
,object
,created
timestamp,url_to_scrape
- Result object with URLs to access different formats of the data
- json_content with structured JSON results including:
searchParameters
: Information about the search queryknowledgeGraph
: Detailed information about the search subject (when available)organic
: List of search results with title, link, position, and snippetpeopleAlsoAsk
: Related questions that users commonly search forrelatedSearches
: Suggested related search queries
json_content
is the main part of the response with the structured JSON results. You can access the JSON content directly from the response or use the hosted URL provided in the response.
Structured Response: json_content
Olostep provides also a hosted JSON file with the structured results. You can access the JSON file using the json_hosted_url
field in the response:
- Structured JSON: View example JSON
If you want to also get the HTML and Markdown content of the search results, you can include these formats in the formats
parameter and Olostep will return them in the response and provide hosted URLs for each format.
Need a Custom Parser?
If you need a parser for a specific website or the ID of a pre-built parser:
- Contact us at info@olostep.com