providers/.docs/content/2.Api/4.ProviderControlslistSourc...

435 B

ProviderControls.listSources

List all source scrapers that applicable for the target. They are sorted by rank, highest first

Example

const sourceScrapers = providers.listSources();
// Guaranteed to only return type: 'source'

Type

function listSources(): MetaOutput[];

type MetaOutput = {
  type: 'embed' | 'source';
  id: string;
  rank: number;
  name: string;
  mediaTypes?: Array<MediaTypes>;
};