Skip to main content
Headers Configuration

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
  • Personalizing user experience
  • Managing shopping carts and user state

Setting Cookies

Cookies are set using the Cookie header as a semicolon-separated string of key-value pairs:

Examples

Common Use Cases

  1. Authentication
  1. Regional Settings
  1. User Preferences

Best Practices

  1. User Agent Best Practices
    • Use recent browser versions
    • Match User-Agent with Sec-Ch-Ua headers
    • Consider region-specific variations
  2. Cookie Management
    • Keep cookies up to date
    • Include all required session cookies
    • Remove unnecessary cookies
    • Handle cookie expiration
  3. Security Considerations
    • Don’t share sensitive cookies
    • Rotate User-Agents when appropriate
    • Use HTTPS when sending sensitive data

Common Issues

Some headers may conflict. Common fixes:
  • Remove conflicting headers
  • Ensure header values match
  • Check case sensitivity

Support

Cookie Examples

Complete cookie integration examples

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!