OG Scrapi is a Deno API that retrieves Open Graph (OG) meta tags and other metadata from a given URL, providing a convenient way to access and utilize website metadata.
- Deno - A secure runtime for JavaScript and TypeScript.
-
Clone the repository:
git clone https://github.com/paripsky/og-scrapi.git cd og-scrapi
-
Run the Deno server:
deno run --allow-net --allow-read main.ts
-
GET /
: Welcome message. -
GET /api/meta?url=<URL>
: Get Open Graph (OG) meta tags and other metadata from the specified URL.
Request:
GET /api/meta?url=https://example.com
Response:
{
"og:title": "Example",
"og:description": "An example website",
"og:image": "https://example.com/image.png",
"title": "Welcome to Example"
// ...other metadata
}
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Feel free to open an issue or submit a pull request.