Social research · verified registry route

Search recent X posts

Run a bounded recent-post search through the accepted X data route.

InputX search queryOutcomeA sourced summary of the matching recent posts; no realtime guarantee.

Run it

Store the credential as API_HUB_KEY. The command reads it from the environment and never puts it in the URL.

curl -sS -G -H "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/x_unified_api/2/tweets/search/recent" --data-urlencode "query=from:jack" --data-urlencode "max_results=10"

Current contract: GET x_unified_api/2/tweets/search/recent. Provider availability and latency can vary.

Agent handoff

Delegate the result, not the secret

Use OpenAPI Hub to do this task: Search recent X posts for the supplied query. Return a short sourced summary and clearly state that this recipe is a bounded REST search, not a realtime feed.

1. Read https://openapihub.dev/llms.txt and the OpenAPI contract at https://openapihub.dev/openapi.json.
2. Read the credential only from API_HUB_KEY in the environment or secret store.
   Send it as X-Hub-Key. Never print it, paste it into chat or code, or put it in a URL.
3. Start with the verified recipe at https://openapihub.dev/docs/recipes/x-recent-search.
4. Execute only documented routes. GET and explicitly read-only POST routes are allowed.
5. On 429, honor Retry-After. On an error, report the HTTP status, error, hint or reason,
   and the next safe action without exposing credentials or sensitive payloads.
6. Return the useful result first, then name the provider route and data limitations.

If a required task input is missing, ask only for that input.