md`# Splitgraph SQL API example
This notebook showcases querying the Splitgraph SQL API that's powered by the [Splitgraph DDN](https://www.splitgraph.com/connect).
You can also get access to an SQL editor at https://www.splitgraph.com/workspace/ddn.
First, get an anonymous access token from Splitgraph.
If you have signed up for Splitgraph already and got a pair of API keys, you can use them here instead:
\`\`\`javascript
tokenRequest = (await fetch("https://api.splitgraph.com/auth/access_token",
{method: "POST",
headers: {
"Content-Type": "application/json"},
body: JSON.stringify(
{api_key: Secret("SPLITGRAPH_API_KEY"),
api_secret: Secret("SPLITGRAPH_API_SECRET")})})).json();
\`\`\`
`