Skip to main content

Retrieving your Deepcrawl accounts

To begin fully using the API you will need access to account with an active subcription.

To find out which accounts do you have access to you can run following GraphQL query.

query getMyAccounts {
me {
accounts(first: 5) {
nodes {
id
name
}
}
}
}
Show example response Show cURL example Try in explorer

When you have an account id that you want to access to you can skip going through me and query directly to get a specific account.

query getAccountNode($accountId: ObjectID!) {
node(id: $accountId) {
... on Account {
id
name
}
}
}
Show example variables Show example response Show cURL example Try in explorer

or you can use getAccount query.

query getSpecificAccount($accountId: ObjectID!) {
getAccount(id: $accountId) {
... on Account {
id
name
}
}
}
Show example variables Show example response Show cURL example Try in explorer