bluesky-social / atproto

Social networking technology created by Bluesky
Other
6.88k stars 486 forks source link

app.bsky.feed.searchPosts since documentation #3021

Open EvilJordan opened 5 days ago

EvilJordan commented 5 days ago

From the docs:

since string Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD).

sortAt is not an available parameter, nor returned in API calls.

Additionally, providing a since based on a post's createdAt does not seem to actually filter anything after that time.

Finally, providing an ISO date in the call:

const posts = await agent.app.bsky.feed.searchPosts({
    q: 'blah',
    sort: 'latest',
    since: '2024-11-13'
});

results in: XRPCError: invalid Datetime for 'since': Datetime syntax didn't validate via regex