I have read all the documentation but nothing is clear, how do I and what is the right thing to use for the request, one page says need API ID and Secret, another page says Token and Organization ID, I need to submit a request to Censys Search and I have 500 credits, but how do I do submit the request?
Solved
API Request
Best answer by MattK_Censys
Hi Senior Shade, based on the error message you shared above, it seems like your organization ID may be missing from your request, though I cannot tell from the example cURL request in your screenshot.
Your organization ID is provided in the URL when you access the Censys Platform web UI.
So your cURL should look like this, with the organization ID and PAT in the appropriate sections:
curl --request POST \
--url 'https://api.platform.censys.io/v3/global/search/query?organization_id=1234567890' \
--header 'accept: application/json' \
--header 'authorization: Bearer ACBDEFGHIJK' \
--header 'content-type: application/json' \
--data '
{
"page_size": 5,
"query": "host.ip: 1.1.1.1/17"
}
'
Let me know if this helps.
Reply
Sign up
Already have an account? Login
You need a Censys account in order to create a Censys Community account. When you click the button below, you will be redirected to login using your existing Censys credentials. If you do not already have a Censys Community account, you will be prompted to create one after logging into your Censys account.
Log in or register with Censys credentials
Log in to the Censys Community
You need a Censys account in order to create a Censys Community account. When you click the button below, you will be redirected to login using your existing Censys credentials. If you do not already have a Censys Community account, you will be prompted to create one after logging into your Censys account.
Log in or register with Censys credentials
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.