{"id":29031621,"url":"https://github.com/weyvaks/perplexity-api","last_synced_at":"2026-01-20T16:30:32.784Z","repository":{"id":301144484,"uuid":"1008134252","full_name":"WEYVAKs/Perplexity-API","owner":"WEYVAKs","description":"Unlock insights with the Perplexity-API. Effortlessly search and analyze Google data using advanced AI for better decision-making. 🚀🌟","archived":false,"fork":false,"pushed_at":"2025-06-25T10:44:30.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-25T11:43:51.372Z","etag":null,"topics":["ai","bing-ai","bingai","bot","chatgpt","chatgpt-api","chatgpt-app","claude","claude-ai","gpt","language-model","language-models","mcp","mcp-server","openai","openai-api","puppeteer","swift"],"latest_commit_sha":null,"homepage":"https://weyvaks.github.io","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WEYVAKs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-25T04:52:38.000Z","updated_at":"2025-06-25T10:44:34.000Z","dependencies_parsed_at":"2025-06-25T11:43:53.757Z","dependency_job_id":"fcd75785-fc62-464e-b532-b0b332707ab2","html_url":"https://github.com/WEYVAKs/Perplexity-API","commit_stats":null,"previous_names":["weyvaks/perplexity-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WEYVAKs/Perplexity-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WEYVAKs%2FPerplexity-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WEYVAKs%2FPerplexity-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WEYVAKs%2FPerplexity-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WEYVAKs%2FPerplexity-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WEYVAKs","download_url":"https://codeload.github.com/WEYVAKs/Perplexity-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WEYVAKs%2FPerplexity-API/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262044446,"owners_count":23249749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","bing-ai","bingai","bot","chatgpt","chatgpt-api","chatgpt-app","claude","claude-ai","gpt","language-model","language-models","mcp","mcp-server","openai","openai-api","puppeteer","swift"],"created_at":"2025-06-26T10:04:47.648Z","updated_at":"2025-06-26T10:04:48.575Z","avatar_url":"https://github.com/WEYVAKs.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Perplexity API: Unlocking Data Insights with Google Search\n\n![Perplexity API](https://img.shields.io/badge/Perplexity%20API-Documentation-brightgreen)\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Features](#features)\n- [Getting Started](#getting-started)\n- [Installation](#installation)\n- [Usage](#usage)\n- [API Endpoints](#api-endpoints)\n- [Examples](#examples)\n- [Error Handling](#error-handling)\n- [Contributing](#contributing)\n- [License](#license)\n- [Contact](#contact)\n- [Releases](#releases)\n\n## Overview\n\nThe **Perplexity API** combines the power of Perplexity and Google Search. This API allows users to search and analyze Google data effortlessly. With its advanced capabilities, you can turn raw data into valuable insights. The API is built on artificial intelligence, making it easier for users to make informed decisions.\n\n## Features\n\n- **Seamless Integration**: Easily integrate with existing applications.\n- **Data Analysis**: Transform raw data into actionable insights.\n- **AI-Powered**: Leverage artificial intelligence for enhanced results.\n- **User-Friendly**: Designed for both developers and non-developers.\n- **Real-Time Data**: Access the latest information from Google Search.\n\n## Getting Started\n\nTo get started with the Perplexity API, follow these steps:\n\n1. **Create an Account**: Sign up for an account on our platform.\n2. **Obtain API Key**: After registration, you will receive an API key.\n3. **Read the Documentation**: Familiarize yourself with the API endpoints and usage.\n\n## Installation\n\nTo install the Perplexity API, you need to follow these steps:\n\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/WEYVAKs/Perplexity-API.git\n   ```\n2. **Navigate to the Directory**:\n   ```bash\n   cd Perplexity-API\n   ```\n3. **Install Dependencies**:\n   Use your package manager to install the necessary dependencies. For example, if you are using npm:\n   ```bash\n   npm install\n   ```\n\n## Usage\n\nTo use the Perplexity API, you will need to include your API key in your requests. Below is a simple example of how to make a request:\n\n```javascript\nconst axios = require('axios');\n\nconst apiKey = 'YOUR_API_KEY';\nconst query = 'search term';\n\naxios.get(`https://api.perplexity.ai/search?q=${query}`, {\n    headers: {\n        'Authorization': `Bearer ${apiKey}`\n    }\n})\n.then(response =\u003e {\n    console.log(response.data);\n})\n.catch(error =\u003e {\n    console.error(error);\n});\n```\n\n## API Endpoints\n\n### Search Endpoint\n\n- **Endpoint**: `/search`\n- **Method**: GET\n- **Parameters**:\n  - `q`: The search query.\n  - `limit`: (Optional) Number of results to return.\n\n### Example Request\n\n```http\nGET /search?q=example\u0026limit=10\n```\n\n### Response Format\n\nThe API will return a JSON object containing the search results:\n\n```json\n{\n    \"results\": [\n        {\n            \"title\": \"Example Title\",\n            \"link\": \"https://example.com\",\n            \"snippet\": \"This is an example snippet.\"\n        }\n    ]\n}\n```\n\n## Examples\n\n### Example 1: Basic Search\n\nTo perform a basic search, use the following code:\n\n```javascript\nconst query = 'latest technology trends';\n\naxios.get(`https://api.perplexity.ai/search?q=${query}`, {\n    headers: {\n        'Authorization': `Bearer ${apiKey}`\n    }\n})\n.then(response =\u003e {\n    console.log(response.data.results);\n});\n```\n\n### Example 2: Search with Limit\n\nYou can limit the number of results returned by specifying the `limit` parameter:\n\n```javascript\nconst query = 'artificial intelligence';\nconst limit = 5;\n\naxios.get(`https://api.perplexity.ai/search?q=${query}\u0026limit=${limit}`, {\n    headers: {\n        'Authorization': `Bearer ${apiKey}`\n    }\n})\n.then(response =\u003e {\n    console.log(response.data.results);\n});\n```\n\n## Error Handling\n\nWhen using the API, you may encounter errors. Here are some common error responses:\n\n- **401 Unauthorized**: This error occurs when the API key is missing or invalid.\n- **404 Not Found**: The requested endpoint does not exist.\n- **500 Internal Server Error**: There is an issue with the server.\n\nYou can handle errors in your code like this:\n\n```javascript\naxios.get(`https://api.perplexity.ai/search?q=${query}`, {\n    headers: {\n        'Authorization': `Bearer ${apiKey}`\n    }\n})\n.then(response =\u003e {\n    console.log(response.data);\n})\n.catch(error =\u003e {\n    if (error.response) {\n        console.error(`Error: ${error.response.status} - ${error.response.data.message}`);\n    } else {\n        console.error('Error:', error.message);\n    }\n});\n```\n\n## Contributing\n\nWe welcome contributions to the Perplexity API. To contribute:\n\n1. Fork the repository.\n2. Create a new branch.\n3. Make your changes.\n4. Submit a pull request.\n\nPlease ensure that your code follows our coding standards and includes appropriate tests.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nFor questions or support, please reach out to us at support@perplexity.ai.\n\n## Releases\n\nTo download the latest version of the Perplexity API, visit the [Releases section](https://github.com/WEYVAKs/Perplexity-API/releases). Here, you can find the necessary files to download and execute.\n\nTo stay updated on future releases, check back regularly at the [Releases section](https://github.com/WEYVAKs/Perplexity-API/releases).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweyvaks%2Fperplexity-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweyvaks%2Fperplexity-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweyvaks%2Fperplexity-api/lists"}