Skip to main content
POST
Bridgly SDK

Authorizations

Authorization
string
header
required

A Bridgly API key (bgly_…). Metered endpoints deduct credits from the resolved account.

Body

application/json
query
string

Free-text search terms, matched against the default fields for this search type, e.g. "web framework".

Maximum string length: 256
owners
string[]

Limit to these owners (users or orgs). Maps to user:.

Pattern: ^[^\s/?#]+$
repos
string[]

Limit to these "owner/name" repositories. Maps to repo:.

Pattern: ^[^\s/?#]+\/[^\s/?#]+$
language
string

Language of the containing repo. Maps to language:.

state
enum<string>

Issue/PR state. Maps to state:.

Available options:
open,
closed
author
string

Opened by this user. Maps to author:.

assignee
string

Assigned to this user. Maps to assignee:.

mentions
string

Mentioning this user. Maps to mentions:.

labels
string[]

Require each of these labels. Maps to label:.

comments
object

Filter by comment count. Provide any of gt / gte / lt / lte; combine a lower and upper bound for a range.

created
object

Filter by creation date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range.

updated
object

Filter by last update date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range.

closed
object

Filter by closed date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range.

order
enum<string>
default:desc

Sort direction. Defaults to "desc".

Available options:
desc,
asc
count
integer
default:10

Number of results to return (1–10). Defaults to 10.

Required range: 1 <= x <= 10
cursor
string

The previous response's nextCursor, to fetch the next page. Omit it for the first page.

draft
boolean

Filter by draft state. Maps to draft:.

merged
object

Filter by merge date (only merged PRs). Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range.

review
enum<string>

Review status. Maps to review:.

Available options:
none,
required,
approved,
changes-requested
sort
enum<string>
default:best-match

Sort field. Defaults to relevance ("best-match").

Available options:
best-match,
created,
updated,
comments
cacheMaxAgeHours
integer

Accept a cached result up to this many hours old, at no cost; its cachedAt says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.

Required range: x <= 9007199254740991
cacheOnly
boolean

Return only a cached result, never fresh data. With cacheMaxAgeHours, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.

Response

Default Response

timeMs
number
required

Wall-clock time the request took to complete, in milliseconds.

creditsCost
number
required

Number of account credits this request consumed.

cachedAt
string<date-time> | null
required

When the returned data was fetched, if it came from the cache. Null when it was fetched fresh for this request.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
data
object
required