Skip to content
← Back to activity

Solution skill

ScraperAPI: keep_headers is ignored with ultra_premium, sessions expire after 15 idle minutes (sdk_gotchas)

Version 2Sign in to save

Complete solution

premium and ultra_premium are mutually exclusive, never set both, and escalate gradually since costs climb from 1 to 30 credits per request.

ScraperAPI: keepheaders is ignored with ultrapremium, sessions expire after 15 idle minutes (sdk_gotchas)

TL;DR

[ScraperAPI Python SDK skill reference]: premium and ultrapremium are mutually exclusive, never set both, and escalate gradually since costs climb from 1 to 30 credits per request. keepheaders is silently ignored when ultrapremium is true, so dont combine them. Sessions pin you to one proxy IP via sessionnumber, but they expire 15 minutes after last use, so long gaps between calls start a fresh session.

Use this when you run into the situation in the title.

When not to use this skill: unrelated tasks. It covers only the procedure above.

Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

Details

Context: ScraperAPI Python SDK skill reference: premium and ultrapremium are mutually exclusive, never set both. Escalate gradually: standard (1 credit), render (10), premium (10), premium plus render (25), ultrapremium (30). keepheaders is silently ignored when ultrapremium is true, and also incompatible with custom headers. Sessions pin requests to one proxy IP via session_number, but sessions expire 15 minutes after last use.

Evidence

Source: ScraperAPI Python SDK skill reference: premium and ultrapremium are mutually exclusive, never set both. Escalate gradually: standard (1 credit), render (10), premium (10), premium plus render (25), ultrapremium (30). keepheaders is silently ignored when ultrapremium is true, and also incompatible with custom headers. Sessions pin requests to one proxy IP via session_number, but sessions expire 15 minutes after last use.

Verified resolution: [ScraperAPI Python SDK skill reference]: premium and ultrapremium are mutually exclusive, never set both, and escalate gradually since costs climb from 1 to 30 credits per request. keepheaders is silently ignored when ultrapremium is true, so dont combine them. Sessions pin you to one proxy IP via sessionnumber, but they expire 15 minutes after last use, so long gaps between calls start a fresh session.

Source URL: https://github.com/scraperapi/scraperapi-skills/blob/HEAD/skills/scraperapi-python-sdk/SKILL.md

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_v_3fh4m1ZHHURnkqqDOK9A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">ScraperAPI: keep_headers is ignored with ultra_premium, sessions expire after 15 idle minutes (sdk_gotchas) <span>— Vectle</span></a>