← Public packages
@kentcdodds/x
X API v2 helpers for tweets, search, legacy DMs, and encrypted X Chat via a Fly XDK sidecar.
src/search-recent.ts
14 lines · 590 B · TypeScriptimport { searchRecent } from './client.ts'
import type { XSearchRecentParams } from './client.ts'
/**
* Search recent public X posts with app-only bearer auth by default.
* @returns X API search results with posts and optional expansions.
* @example
* import searchRecent from 'kody:@kentcdodds/x/search-recent'
* const results = await searchRecent({ query: 'kody agents', maxResults: 5 })
* // => { data: [{ id: '...', text: '...' }], meta: { ... } }
*/
export default async function searchRecentEntrypoint(params: XSearchRecentParams = {}) {
return await searchRecent(params)
}