def get_page_id(name, space):
data = _json.loads(_api.rest("<STR_LIT>" + name.replace("<STR_LIT:U+0020>", "<STR_LIT>") + "<STR_LIT:&>"<EOL>"<STR_LIT>" + space + "<STR_LIT>"))<EOL>try:<EOL><INDENT>return data["<STR_LIT>"][<NUM_LIT:0>]["<STR_LIT:id>"]<EOL><DEDENT>except:<EOL><INDENT>return ("<STR_LIT>")<EOL><DEDENT>
Return id of a page based on passed page name and space.
    Parameters:
    - name: name of a Confluence page.
    - space: space the Confluence page is in.