Dynamic JSON

Create a badge from any JSON API using JSONPath queries.

GET/badge/dynamic/json.svg

URL to a public JSON document.

JSONPath expression to extract the value.

Text to prepend to the extracted value.

Text to append to the extracted value.

![badge](https://shieldcn.dev/badge/dynamic/json.svg?url=https%3A%2F%2Fapi.github.com%2Frepos%2Fvercel%2Fnext.js&query=%24.stargazers_count)
badge preview

JSONPath syntax

ExpressionDescription
$.keyTop-level field
$.nested.keyNested field
$.array[0]First array element
$.array.lengthArray length

Caching

Dynamic JSON responses are cached for 5 minutes.