Skip to main content
A funding call is a short web page. The rules and the deadline are in a PDF that the page links to, and an agent that reads only the page reports the call without them. list_links returns the links of a record, which is the copy of a source that getclean stores after a fetch or an upload. Each link has a kind, so the links to files can be told from the links to other pages.
Send the id of the record and the kind of link you want.
Replace CONTENTS_ID with the id of a record. The links come in the order of the page. This response is cut to its one link, and the link to the fields that say what it is.
200 OK
A link also names the block and the section it is in, so you know whether it is in the text of the call or in a list of related pages. link_kinds takes any of 7 values. The kind is read from the link’s address. No request is made to the address, so a link has no size and no type as served, and a file behind an address without a file ending comes as page. The fetch of the link says what it is. external set to true returns only the links that leave the site, and false only the links that stay on it. section_id returns only the links of one section.

Fetch the linked files

Each file is a source of its own. Fetch the addresses in one batch of up to 20, and each comes back as a record with its outline, its sections, and its pages. For the request, see Fetch 20 sources at once and know what came back before you read a word. A fetch can also return the links itself. With links in formats, the response has up to 1,000 links of the page. list_links has all of them. list_links reads the stored record, so it costs nothing. The key needs the scope contents:read.