Revenue from publications
Fetch the revenue earned from all publications for a specified profile.
Request
RevenueFromPublicationsRequest
Invocation
const result = await client.revenue.fromPublications({
for: "PROFILE_ID",
});
fragment PublicationRevenue on PublicationRevenue {
publication {
... on Post {
...Post
}
... on Mirror {
...Mirror
}
... on Comment {
...Comment
}
... on Quote {
...Quote
}
}
revenue {
...RevenueAggregate
}
}
query RevenueFromPublications($request: RevenueFromPublicationsRequest!) {
result: revenueFromPublications(request: $request) {
items {
...PublicationRevenue
}
pageInfo {
...PaginatedResultInfo
}
}
}
Response
Paginated result with PublicationRevenue
Full GraphQL API Example
Updated about 1 month ago