<?xml version="1.0" encoding="UTF-8"?>
<response><data><post><id>129</id><slug>rate-limit-headers-explained-part-7-129</slug><title>Rate limit headers explained, part 7</title><excerpt>This is part 7 of our series, and this time we focus on edge cases readers asked about. A well-behaved API tells you how many requests you have left before it starts saying no. Reading those headers…</excerpt><seriesName>Rate limit headers explained</seriesName><seriesPart>7</seriesPart><sections><item><heading>Introduction</heading><paragraphs><item>This is part 7 of our series, and this time we focus on edge cases readers asked about. A well-behaved API tells you how many requests you have left before it starts saying no. Reading those headers turns rate limiting from a surprise into a plan.</item></paragraphs></item><item><heading>What to watch for</heading><paragraphs><item>Validate the data you extract. Prices without currencies, dates without time zones and empty fields are common sources of silent errors downstream.</item><item>Pagination comes in several shapes: numbered pages, next links, offsets and opaque cursors. Each has trade-offs, and a robust scraper should detect the end of the result set rather than assuming a fixed number of pages.</item></paragraphs></item><item><heading>Putting it into practice</heading><paragraphs><item>Before writing a single line of code, look at how the page actually loads its data. Open the network panel, reload, and note which requests return the content you care about. Very often the data you want arrives as JSON from an endpoint you can call directly.</item><item>Deduplicate as you go. The same item often appears on several listing pages, and a stable identifier such as a SKU or ID makes duplicates easy to spot.</item></paragraphs></item><item><heading>Key takeaway</heading><paragraphs><item>Track X-RateLimit-Remaining, slow down as it approaches zero, and when you receive a 429, wait for the number of seconds in Retry-After before trying again.</item></paragraphs></item></sections><authorId>7</authorId><authorName>Kwame Mensah</authorName><authorSlug>kwame-mensah</authorSlug><category>APIs</category><tags><item>selenium</item><item>python</item><item>playwright</item><item>javascript</item></tags><publishedAt>2026-01-10T00:00:00.000Z</publishedAt><wordCount>204</wordCount><readingTimeMinutes>2</readingTimeMinutes></post></data></response>
