Real-World Use Cases
Comprehensive examples showing how to use the ProxyTurk API in various scenarios. Each example contains production-ready code.
import proxyturkimport jsonfrom datetime import datetimeclient = proxyturk.Client(api_key="YOUR_API_KEY")PRODUCTS = [ {"name": "iPhone 15 Pro", "url": "https://example-shop.com/iphone-15-pro"}, {"name": "Samsung S24", "url": "https://example-shop.com/samsung-s24"},]def track_prices(): results = [] for product in PRODUCTS: response = client.scrape( url=product["url"], formats=["extract"], extract={ "schema": { "type": "object", "properties": { "price": {"type": "number"}, "currency": {"type": "string"}, "in_stock": {"type": "boolean"}, "seller": {"type": "string"} } } } ) data = response.extract results.append({ "product": product["name"], "price": data.get("price"), "currency": data.get("currency", "TRY"), "in_stock": data.get("in_stock"), "timestamp": datetime.now().isoformat() }) print(f"{product['name']}: {data.get('price')} {data.get('currency', 'TRY')}") with open("price_history.json", "a") as f: for r in results: f.write(json.dumps(r, ensure_ascii=False) + "\n") return resultsif __name__ == "__main__": track_prices()Monitor product prices on competitor e-commerce sites regularly and receive notifications when prices change. This scenario periodically scrapes specific product URLs to extract pricing data and store it in a database. It automatically sends alerts when a price drops or falls below a specified threshold.
Use cases: - Building dynamic pricing strategies - Staying competitive by monitoring competitor prices - Price history analysis and trend detection - Sending price drop notifications to customers
Track your website's Google rankings for specific keywords on a daily basis. Use the SERP endpoint to pull search results and identify your site's position. Store the results as time series data to monitor ranking changes over time.
This approach is ideal for measuring your SEO performance. You can monitor multiple keywords and locations in parallel, and take immediate action when rankings drop. Generate weekly and monthly reports to manage your SEO strategy in a data-driven manner.
Create a customized news feed by collecting content from multiple news sources. Use ProxyTurk's scrape endpoint to fetch news site homepages or category pages and extract headlines, summaries, authors, and publication dates.
Apply NLP techniques on the collected data for topic-based grouping, sentiment analysis, and trend detection. When RSS feeds are insufficient, scraping provides a richer and more flexible data source. Combine news from different sources and filter out duplicate content for a cleaner feed.
Collect residential and commercial real estate data from property listing sites for market analysis. Extract structured data such as price, square footage, number of rooms, location, and listing date. Use this data to create regional price maps, price-per-square-meter comparisons, and investment opportunity analyses.
Data collected over time forms a powerful resource for understanding real estate market trends. You can set up automation scenarios such as automatically detecting new listings and sending notifications to potential buyers, or monitoring price changes on existing listings.
Systematically monitor your competitors' websites, product catalogs, and pricing. Regularly collect information about product variety, price ranges, campaigns and discounts, and new product launches. This data strengthens your marketing strategy and product positioning.
Combine scraping with SERP data to monitor your competitors' organic search performance. Analyze which keywords they rank for and what content strategies they use, then optimize your own SEO efforts based on these insights.
Collect potential customer information from business directories, industry portals, and professional networks. Extract data such as company name, contact information, industry, number of employees, and location in a structured format. Use this data to create targeted sales and marketing campaigns.
Automatically import your collected lead data into your CRM system to increase your sales team's productivity. Segment by industry, location, or company size to build personalized outreach campaigns that convert better.
Questions about code examples
The examples are designed to demonstrate basic usage. For production environments, we recommend adding error handling, rate limiting, logging, and monitoring. Our SDKs provide helper methods for these concerns.
ProxyTurk API is REST-based and can be used with any HTTP client. Official SDKs are available for Python and Node.js. Community-developed SDKs for Go, Ruby, and PHP are also available.
The free plan has a limit of 10 requests per minute. Parallel requests in the examples may exceed this limit. The SDK automatically retries on rate limit errors. Check our paid plans for higher limits.
ProxyTurk provides data collection infrastructure. The use of collected data is subject to the target site's terms of service and local regulations. Legal compliance is your responsibility.