Skip to content

paripsky/og-scrapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OG Scrapi

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.

Getting Started

Prerequisites

  • Deno - A secure runtime for JavaScript and TypeScript.

Installation

  1. Clone the repository:

    git clone https://github.com/paripsky/og-scrapi.git
    cd og-scrapi
  2. Run the Deno server:

    deno run --allow-net --allow-read main.ts

Usage

Endpoints

  • GET /: Welcome message.

  • GET /api/meta?url=<URL>: Get Open Graph (OG) meta tags and other metadata from the specified URL.

Example

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
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

About

A Deno API that retrieves meta tags from any URL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published