Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

153
Vistas
How do I retrieve a site using notions api?

I am currently trying to download a site/page using notions API. I shared the page and tried this:

(async () => {

    const pageId = 'abcd-editorial-efe.notion.site/Sites-abc123';
  
    const response = await notion.pages.retrieve({ page_id: pageId });
  
    console.log(response);
  
  })();

I get an error saying:

@notionhq/client warn: request fail {
  code: 'object_not_found',
  message: 'Could not find page with ID: abc123..... Make sure the relevant pages and databases are shared with your integration.'
}

Is this the correct API endpoint to retrieve a page?

Notions docs pageId is a GUID...but when I shared my page I get a complete/full URL:

(async () => {

  const pageId = 'b55c9c91-384d-452b-81db-d1ef79372b75';

  const response = await notion.pages.retrieve({ page_id: pageId });

  console.log(response);

})();

I am using "@notionhq/client": "^1.0.4"

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

[Muhammed][1] nailed it in the comments

In the share section (top right), select invite and invite your integration [1]: https://stackoverflow.com/users/7047338/muhammad-magdi

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda