curl --location --request GET 'https://nostrapi.com/api/v1/utils/twitter-nostr?username=andreneves' \
--header 'Content-Type: application/json' \
--header 'apikey: <YOUR_KEY_HERE>'
{
"success": true,
"message": "Successfully fetched NOSTR public key for Twitter user @andreneves.",
"data": {
"nostrPubkey": "1b11ed41e815234599a52050a6a40c79bdd3bfa3d65e5d4a2c8d626698835d6d",
"twitterUsername": "andreneves"
}
}
Experimental APIs
Twitter to Nostr
Get the Nostr public key of a Twitter user
GET
/
api
/
v1
/
utils
/
twitter-nostr
curl --location --request GET 'https://nostrapi.com/api/v1/utils/twitter-nostr?username=andreneves' \
--header 'Content-Type: application/json' \
--header 'apikey: <YOUR_KEY_HERE>'
{
"success": true,
"message": "Successfully fetched NOSTR public key for Twitter user @andreneves.",
"data": {
"nostrPubkey": "1b11ed41e815234599a52050a6a40c79bdd3bfa3d65e5d4a2c8d626698835d6d",
"twitterUsername": "andreneves"
}
}
Query
string
This is the Twitter username of the user you wish to find the Nostr account public key for.
Response
boolean
Indicates whether the call was successful.
true if successful, false if not.string
Message detailing the results of the operation.
object
curl --location --request GET 'https://nostrapi.com/api/v1/utils/twitter-nostr?username=andreneves' \
--header 'Content-Type: application/json' \
--header 'apikey: <YOUR_KEY_HERE>'
{
"success": true,
"message": "Successfully fetched NOSTR public key for Twitter user @andreneves.",
"data": {
"nostrPubkey": "1b11ed41e815234599a52050a6a40c79bdd3bfa3d65e5d4a2c8d626698835d6d",
"twitterUsername": "andreneves"
}
}