music nerd

Artist lookupsFind an artist's X handle

Artist lookups

Find an artist's X handle

Returns the stored X handle of an artist found by ethAddress (a wallet address or ENS name) or by an unambiguous exact name. Name matching ignores case and leading/trailing spaces, but preserves punctuation, accents and internal spaces. There is no fuzzy fallback and no search of X. If both fields are sent, ethAddress is used. result is null when the matched artist has no X handle. A name matching zero or multiple artists returns {}; it never selects another artist just because that artist has a handle.

Clients should tag only when result contains a non-empty handle; neither null nor {} supplies a handle. Prefer a known wallet or ENS identity when names are ambiguous.

Responses are { result } with plain-text errors, not this API's { status } envelope.

POST/api/findTwitterHandle
POST/api/findTwitterHandle

Returns the stored X handle of an artist found by ethAddress (a wallet address or ENS name) or by an unambiguous exact name. Name matching ignores case and leading/trailing spaces, but preserves punctuation, accents and internal spaces. There is no fuzzy fallback and no search of X. If both fields are sent, ethAddress is used. result is null when the matched artist has no X handle. A name matching zero or multiple artists returns {}; it never selects another artist just because that artist has a handle.

Body
cURL
curl --request POST \
  --url 'https://musicnerd-api.vercel.app/api/findTwitterHandle' \
  --header 'Content-Type: application/json' \
  --data '{
  "ethAddress": "0x0000000000000000000000000000000000000001"
}'

Send the request to see the live response here.

Authorizations

None. This endpoint is public.

Body

application/jsonrequired
namestring
ethAddressstring

Response

application/json

The artist's stored X handle (null if absent), or {} when a name matches zero or multiple artists.

resultstring | null