Additional Parameters
Headers & Cookies
Customize request headers and cookies for web scraping
Overview
All our services (SmartScraper, SearchScraper, and Markdownify) support custom headers and cookies to help you:
- Bypass basic anti-bot protections
- Access authenticated content
- Maintain sessions
- Customize request behavior
Headers
Common Headers
You can set any of the following headers in your requests:
Usage Examples
Cookies
Overview
Cookies are essential for:
- Accessing authenticated content
- Maintaining user sessions
- Handling website preferences
- Bypassing certain security measures
Setting Cookies
Cookies are set using the Cookie
header as a semicolon-separated string of key-value pairs:
Examples
Common Use Cases
- Authentication
- Regional Settings
- User Preferences
Best Practices
-
User Agent Best Practices
- Use recent browser versions
- Match User-Agent with Sec-Ch-Ua headers
- Consider region-specific variations
-
Cookie Management
- Keep cookies up to date
- Include all required session cookies
- Remove unnecessary cookies
- Handle cookie expiration
-
Security Considerations
- Donβt share sensitive cookies
- Rotate User-Agents when appropriate
- Use HTTPS when sending sensitive data
Common Issues
Support
Documentation
Comprehensive guides and tutorials
API Reference
Detailed API documentation
Community
Join our Discord community
GitHub
Check out our open-source projects
Need Help?
Contact our support team for assistance with headers, cookies, or any other questions!
Was this page helpful?