GET /api/gravity/v3/gravity/search

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/cmc/api/gravity/v3/gravity/searchCache cached 1s, never served stale past that windowCost per_call · weight 1 · standard rate classSource billing free

Gravity posts matching a word (text, likes, comments, time).

name=gravity_search. Bare list. start=1 returned 10 posts.

Parameters

nameintypedescription
wordquerystrrequiredVerified value bitcoin.
example: bitcoin
startquerystrrequired1-based row offset.
example: 1
latestSortquerystrrequiredVerified value is the string false.
example: false

Response

type: array
pagination: none
sample: {
  "len": "10",
  "[0]": "object",
  "[0].gravityId": "379930568",
  "[0].rootId": "379930568",
  "[0].textContent": "ROBINHOOD ADDS $25M BITCOIN TO CORPORATE BALANCE SHEET\n\n$BTC #Bitcoin",
  "[0].commentCount": "1",
  "[0].likeCount": "1",
  "[0].isLiked": "false"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/cmc/api/gravity/v3/gravity/search?word=bitcoin&start=1&latestSort=false"