{"uid":"cap_km5lYGGhPnqbiDethUj-g","slug":"agentshelf-syntexa-ch-regex-wikidata-q-id-extractor-b63f3b4a","name":"agentshelf.syntexa.ch Regex Wikidata Q-ID Extractor","description":"Call when an agent needs Wikidata Q ids extracted from text, capped at 20 matches. An empty match list is billed. No network. Exact $0.006 USDC. Prefer unpaid POST /v1/sandbox/regex-wikidata first.","url":"https://agentshelf.syntexa.ch/v1/regex-wikidata?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["Q42"],"maxLength":100000,"minLength":1,"description":"Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OlAlMwmKDPgPDo-Ym34Xe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts Wikidata Q-identifiers (e.g. Q42, Q76) from text using regex, returning up to 20 matches","exampleAgentPrompt":"Can you scan this text and pull out all the Wikidata Q IDs it mentions — something like Q42 or Q76 — up to 20 of them? Here's the text: 'Douglas Adams (Q42) wrote The Hitchhiker's Guide, and Barack Obama (Q76) is a famous politician.'","exampleUseCases":[{"title":"Entity linking in article processing","prompt":"I have this Wikipedia excerpt and I need you to extract all the Wikidata Q IDs from it so I can link them to our knowledge graph — here's the text: 'Elon Musk (Q317521) leads SpaceX (Q193701) and Tesla (Q478214).'"},{"title":"Audit Wikidata references in data pipeline","prompt":"We received a batch description that supposedly references Wikidata entities — can you scan this text and tell me every Q ID that appears in it? Text: 'The dataset covers Marie Curie Q7186 and Albert Einstein Q937 and their contributions.'"},{"title":"Validate Q-ID presence in generated content","prompt":"My content generator just produced this paragraph — can you check what Wikidata Q IDs are embedded in it and list them all? Here it is: 'Paris Q90 is the capital of France Q142 and home to the Eiffel Tower Q243.'"}],"resultDescription":"A list of up to 20 Wikidata Q ID strings (e.g. ['Q42', 'Q76', 'Q317521']) found in the input text via regex matching. If no Q IDs are present, an empty list is returned but the call is still billed.","failureModes":["Empty match list returned when text contains no Wikidata Q IDs — still billed $0.006 USDC","Input text exceeds 100,000 character limit — request rejected with validation error","Text shorter than 1 character — request rejected","More than 20 matches present — only first 20 returned, remainder silently truncated","Malformed JSON body — HTTP 400 error"],"whenToPreferThis":"Use this endpoint when you need fast, offline regex-based extraction of Wikidata Q IDs from text and do not require semantic entity disambiguation. Prefer the free sandbox endpoint POST /v1/sandbox/regex-wikidata for testing or when cost matters. Choose this over NLP-based entity linkers when you only need syntactic Q-ID pattern matching (e.g. 'Q' followed by digits) and low latency without network dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:14.970Z","isFirstParty":false,"canonicalSlug":"agentshelf-syntexa-ch-regex-wikidata-q-id-extractor-b63f3b4a"}