Getting Started
Learn how to use our API and build your own custom sitemaps workflow, just the way you like to.
API Authentication
{ "Authorization": "Bearer: your-secure-bearer-token-here" }Example with curl
You can use curl to do API requests. Here's an example, including the required Authorization header.
API_TOKEN="your-api-token-here";
curl -XGET \
-H "Authorization: Bearer ${API_TOKEN}" \ # Authenticate with Bearer token
https://sitemap.sh/api/projects > ./results.jsonBeautify JSON output
echo '[{"key":"value"},{"key2":"value2"}]' | json_ppThis should result into the following output.
[
{
"key" : "value"
},
{
"key2" : "value2"
}
]Last updated
Was this helpful?