Example: TikTok Channel Videos
In this example, we will demonstrate how to use the InstantAPI.ai Retrieve API endpoint to scrape detailed information from a TikTok channel. We will provide a complete request and explain what each part of the request does. Additionally, we will show the expected response structure.
Complete Request
Here is a complete request to the Retrieve API endpoint:
Request Breakdown
- webpage_url: The URL of the TikTok channel you want to scrape.
- api_method_name: A user-defined name for the API action, in this case, “getAllVideos”.
- api_response_structure: The expected structure of the APIs response, defined by you. This includes placeholders for the details you want to scrape.
- api_key: Get your API key.
Expected Response Structure
The expected response structure is defined in the api_response_structure
parameter. Here is the formatted version for clarity:
Example Response
When the request is successfully processed, you can expect a response similar to the following:
By following this example, you can easily use InstantAPI.ai to scrape and transform data from various web pages into structured data tailored to your needs.