{"uid":"cap_Pn7EyNDgl1ljWSlYgIO6K","slug":"jsonpath-field-extractor-27773053","name":"JSONPath Field Extractor","description":"Extract one or many values from a JSON blob by dot/bracket path (e.g. items[2].name, meta.total). Pull just the fields you need instead of shipping the whole object.","url":"https://api.24klabs.ai/api/jsonpath-extract","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"object"},"paths":{"type":"array"}}},"responseSchema":{"type":"json","example":{"results":[{"path":"items[1].name","found":true,"value":"b"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HogE2KcSXsOKbsMHH56sX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extract one or more specific values from a JSON blob using dot-notation or bracket-path expressions (e.g. items[2].name, meta.total).","exampleAgentPrompt":"I have a big JSON response from an API and I only need the value at data.users[0].email — can you extract just that field from the blob without returning the whole object?","exampleUseCases":[{"title":"Pull nested API response field","prompt":"I got a huge JSON back from a payment API and I just need the value at result.transaction.id — can you extract that specific field for me?"},{"title":"Read array element from JSON","prompt":"I have a JSON object with an items array and I need the name from the third element — extract items[2].name from this blob please."},{"title":"Grab multiple fields from JSON at once","prompt":"From this API response JSON, can you pull out both meta.total and meta.page for me so I know the pagination info without parsing the whole thing?"}],"resultDescription":"Returns the extracted value(s) corresponding to the provided dot/bracket path(s) — could be a string, number, boolean, array, or nested object depending on what the path resolves to. Returns only the requested fields rather than the full JSON payload.","failureModes":["Path not found in JSON — returns null or an error if the specified key or index does not exist","Malformed JSON input — error if the input blob is not valid JSON","Invalid path syntax — error if the dot/bracket expression is not parseable","Type mismatch — accessing an index on a non-array or a key on a non-object node"],"whenToPreferThis":"Use this endpoint when you have a large or complex JSON payload and only need one or a few specific values — it avoids transmitting or processing the full object. Ideal for post-processing API responses inline inside an agent workflow when you know the exact path to the data. Prefer this over general-purpose JSON parsing when you want a lightweight, cost-effective extraction step without writing code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:54:37.209Z","isFirstParty":false}