{"uid":"cap_GHoV4cwme-VG5YLgOgBWT","slug":"msds-sds-code-extractor-b800d63f","name":"MSDS/SDS Code Extractor","description":"Downloads one public PDF up to 5 MiB through SSRF-safe redirect checks or accepts extracted text, runs pdftotext in a private temporary directory, and deterministically extracts the requested codes with their source lines. Temporary PDF and text files are deleted before the response. It does not OCR scans, identify symbols from images, translate legal wording or certify regulatory completeness.","url":"https://medien.halowerk.com/v1/msds-extract","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":500000,"minLength":20,"description":"Already extracted SDS text; mutually exclusive with pdf_url."},"pdf_url":{"type":"string","format":"uri","description":"Public HTTPS URL of a text-layer PDF, maximum 5 MiB."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_V4C-pK4CXj9NP3YqCCm1X","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts hazard codes, classifications, and identifiers from Safety Data Sheets (SDS/MSDS) by downloading a PDF URL or accepting pre-extracted text, then running pdftotext to deterministically pull codes with their source lines.","exampleAgentPrompt":"Extract all the hazard and classification codes from this SDS PDF — it's a publicly accessible file at https://example.com/chemical-sds.pdf — and tell me which lines they appear on.","exampleUseCases":[{"title":"Chemical inventory compliance check","prompt":"I need you to pull all GHS hazard codes and UN numbers from this safety data sheet at https://supplier.com/sds/acetone.pdf so I can verify our warehouse labeling is correct."},{"title":"SDS code extraction from pre-parsed text","prompt":"I've already extracted the text from an MSDS document — can you go through it and find all the hazard classification codes, H-statements, and P-statements along with the line numbers they appear on?"},{"title":"Automated regulatory data pipeline","prompt":"For each of these SDS PDFs from our chemical supplier, extract the CAS numbers, hazard codes, and storage class codes so we can populate our compliance database."}],"resultDescription":"A structured response containing the extracted codes (e.g. GHS classifications, H/P statements, UN numbers, CAS numbers) along with the source line numbers from the document where each code was found. Temporary files are deleted before the response is returned.","failureModes":["PDF URL not publicly accessible or requires authentication — returns error","PDF exceeds 5 MiB size limit — returns error","PDF is a scanned image without a text layer — OCR is not supported, extraction will fail or return empty","Text input below 20 characters or above 500,000 characters — validation error","SSRF-safe redirect check blocks the URL — returns error","PDF contains no recognizable SDS codes — returns empty result","Malformed or non-PDF content at the URL — returns error"],"whenToPreferThis":"Choose this endpoint when you need to deterministically extract specific regulatory and hazard codes from SDS/MSDS documents — either by providing a public PDF URL or pre-extracted text. It is purpose-built for chemical safety documents and returns codes with source line citations, making it ideal for compliance workflows. Prefer it over general-purpose document parsers when you specifically need structured code extraction (GHS, H/P statements, UN numbers, CAS numbers) from safety data sheets without needing OCR, translation, or regulatory interpretation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:46:04.017Z","isFirstParty":false}