{"data":{"id":87,"slug":"extracting-json-ld-from-product-pages-part-5-87","title":"Extracting JSON-LD from product pages, part 5","excerpt":"This is part 5 of our series, and this time we focus on edge cases readers asked about. Many product pages already contain a clean, structured description of themselves in a script tag meant for…","seriesName":"Extracting JSON-LD from product pages","seriesPart":5,"sections":[{"heading":"Introduction","paragraphs":["This is part 5 of our series, and this time we focus on edge cases readers asked about. Many product pages already contain a clean, structured description of themselves in a script tag meant for search engines. Reading it is often more reliable than parsing the visible HTML."]},{"heading":"Step by step","paragraphs":["Store raw responses alongside parsed output while you are developing. When a parser breaks, you can replay the saved HTML instead of hitting the site again.","Log every request with its URL, status code and duration. When something goes wrong at two in the morning, those logs are the difference between a quick fix and a long investigation.","Always identify your client honestly with a descriptive User-Agent, and keep your request rate modest. A crawler that behaves like a considerate visitor is far less likely to cause problems for the site operator."]},{"heading":"Putting it into practice","paragraphs":["Time zones matter more than they seem. Store timestamps in UTC and convert only when displaying them.","Be careful with relative URLs. Resolve every link against the page it came from, not against the site root, or you will request pages that do not exist."]},{"heading":"Key takeaway","paragraphs":["Select script[type='application/ld+json'], parse every block, and pick the one whose @type matches what you need. Fall back to HTML only for missing fields."]}],"authorId":3,"authorName":"Priya Nakamura","authorSlug":"priya-nakamura","category":"Data Engineering","tags":["playwright","ethics","http"],"publishedAt":"2026-02-17T00:00:00.000Z","wordCount":208,"readingTimeMinutes":2}}