How to Use the skr=yes Parameter to Bypass Region Selection Redirects
Append ?skr=yes to any store URL to skip automatic region detection and view stock pages directly without redirect loops.
The bbl-tracker-public-db repository documents a powerful query parameter that solves a common web scraping challenge. When accessing retail store pages programmatically, servers typically inspect your IP address or cookies to redirect you to a region-specific landing page. This behavior breaks automated data collection workflows. The skr=yes parameter acts as a bypass flag that forces the server to serve the raw product page regardless of your detected location.
What Is the skr=yes Parameter?
The skr=yes query string parameter is a server-side instruction recognized by certain retail web applications. When present in a URL, it instructs the application to skip region selection (hence "skr") and serve the requested resource directly. This parameter overrides the default behavior of inspecting Accept-Language headers, IP geolocation, or session cookies to determine the appropriate regional storefront.
How Region Selection Redirects Work
Without the bypass flag, a typical request flow follows this pattern:
- Client requests
https://store.example.com/s/12345/p/67890 - Server detects client location (e.g., Europe via IP)
- Server issues HTTP 302 redirect to
/eu/12345/p/67890 - Client follows redirect, receiving region-locked content
This redirect chain prevents cross-region price comparison and inventory checking. The skr=yes parameter interrupts this chain at step 2, forcing the server to treat the request as location-agnostic.
Implementing the Bypass in Code
Python Implementation with Requests
import requests
store_id = "12345"
product_id = "67890"
base_url = f"https://store.example.com/s/{store_id}/p/{product_id}"
# Append skr=yes to bypass region redirects
url = f"{base_url}?skr=yes"
response = requests.get(url)
if response.ok:
print("Direct page access achieved:")
print(response.text[:500])
else:
print(f"Request failed: {response.status_code}")
Shell Implementation with cURL
# Fetch product page without region redirect
curl -L "https://store.example.com/s/12345/p/67890?skr=yes" \
-o product_page.html
echo "Page saved without regional redirection"
Browser Usage
For manual testing, append the parameter directly to the address bar:
https://store.example.com/s/12345/p/67890?skr=yes
Where This Is Documented
According to the nelsonjchen/bbl-tracker-public-db repository, this bypass technique is officially documented in the project README. The documentation states:
Tip: When programmatically accessing store pages, append
?skr=yesto the URL. This cookie/parameter tells the store to bypass the region selection redirect, allowing you to view stock for other regions without being forced back to your local store.
This reference appears in the repository's README.md file, confirming the parameter's legitimacy for data collection workflows.
Summary
- The
skr=yesquery parameter forces retail servers to skip geolocation-based redirects - Append it to any product URL to access raw stock pages regardless of your IP location
- The
bbl-tracker-public-dbrepository documents this technique in its README for programmatic scraping - Works with standard HTTP clients like Python
requestsandcURLwithout additional headers
Frequently Asked Questions
Does the skr=yes parameter work on all retail websites?
No. The skr=yes parameter is specific to certain retail platforms that implement this bypass flag. It is not a universal HTTP standard. Check the specific store's documentation or the bbl-tracker-public-db repository to confirm compatibility.
Do I need to combine skr=yes with specific headers or cookies?
Generally no. The parameter alone is sufficient to bypass region selection in most implementations. However, some deployments may require you to clear existing regional cookies first or use a session-initializing request before the parameter takes effect.
Is using skr=yes considered web scraping or API abuse?
The parameter is a legitimate feature exposed by the web application for direct page access. Using it to view publicly available product information constitutes standard HTTP client behavior, not API abuse. Always respect the site's robots.txt and terms of service regarding automated access.
Can I use skr=yes with POST requests or only GET?
The parameter functions primarily with GET requests for product page retrieval. POST requests typically handle form submissions or cart operations where region selection logic may follow different rules. For stock checking and product viewing, always use GET with the skr=yes parameter appended to the query string.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →