ressource.socialbetadocumentation
API referenceSearch

One page of one search section

Pages through one section, best match first. | id | rows | |---|---| | `sources` | the caller's own sources (Library and community shares) | | `folders` | the caller's folders | | `tags` | the caller's tags | | `community-sources` | other people's sources shared into one of the caller's communities | | `public-sources` | other people's public sources, shared into none of the caller's communities | | `public-communities` | public communities the caller is not a member of | | `people` | public profiles, and private ones sharing a community with the caller; never the caller | `limit` is 20 by default and 50 at most, clamped. `count` comes with a first page only (no `cursor`); `limit=0` without a cursor returns the count and no rows. Pass `nextCursor` back as `cursor` with the same `q`: a cursor is bound to its section and its query, and one reused with another `q` or another section, or edited, is a 400. An unknown section id is a 404.

GET
/api/v1/search/sections/{id}

Sends a real request with your token. Prefer a read-only token; it is kept in this browser's storage.

Pages through one section, best match first.

idrows
sourcesthe caller's own sources (Library and community shares)
foldersthe caller's folders
tagsthe caller's tags
community-sourcesother people's sources shared into one of the caller's communities
public-sourcesother people's public sources, shared into none of the caller's communities
public-communitiespublic communities the caller is not a member of
peoplepublic profiles, and private ones sharing a community with the caller; never the caller

limit is 20 by default and 50 at most, clamped. count comes with a first page only (no cursor); limit=0 without a cursor returns the count and no rows. Pass nextCursor back as cursor with the same q: a cursor is bound to its section and its query, and one reused with another q or another section, or edited, is a 400. An unknown section id is a 404.

Authorization

headerAuthorizationBearer <token>

A personal access token (rsk_…) or a Supabase access token.

Path Parameters

id*string
Value in"sources""folders""tags""community-sources""public-sources""public-communities""people"

Query Parameters

q*string
Lengthlength <= 2048
cursor?string
Lengthlength <= 512
limit?number

Response Body

A page of the section

application/json
  1. response
items*array<|||>
count?integer

Matches in the section, counted up to 100 (100 reads "99+"). Exactly the rows the pages walk through.

Range0 <= value <= 100
nextCursor*string|null
hasMore*boolean
curl -X GET 'https://www.ressource.social/api/v1/search/sections/sources?q=string'
{  "items": [    {      "result_type": "folder",      "result_id": "string",      "result_name": "string",      "result_description": "string",      "result_url": "string",      "result_short_id": "string",      "folder_id": "string",      "folder_name": "string",      "thumbnail_media": null,      "matching_tags": [        "string"      ],      "match_source": "string",      "rank": 0,      "in_library": true    }  ],  "count": 0,  "nextCursor": "string",  "hasMore": true}

Search every section at once, with a count for each GET

Every section's first page, each in its own envelope `{ items, count, nextCursor, hasMore }`. Every section is always present. | id | rows | |---|---| | `sources` | the caller's own sources (Library and community shares) | | `folders` | the caller's folders | | `tags` | the caller's tags | | `community-sources` | other people's sources shared into one of the caller's communities | | `public-sources` | other people's public sources, shared into none of the caller's communities | | `public-communities` | public communities the caller is not a member of | | `people` | public profiles, and private ones sharing a community with the caller; never the caller | `limit` is rows per section: 5 by default, 50 at most, clamped rather than refused. `count` is the section's match count, counted up to 100. Continue one section with `GET /search/sections/{id}` and its `nextCursor`. A query under two characters (not counting the `@` people sigil, for `people`) answers every section empty with a count of 0. A failing content section (`sources`, `folders`, `tags`, `community-sources`, `public-sources`) fails the request; `public-communities` and `people` degrade to an empty envelope. Nothing is cached: abort a superseded request.

Capture the page archive the caller's own source is owed POST

Runs the capture on this request (up to 60 s). Only a source whose `warc_status` is `pending` or `failed` starts one; any other status answers `started: false`. A full archive quota is a 429 with `details.reason` and no `Retry-After` — it frees up when archives are deleted, not after a delay.