> For the complete documentation index, see [llms.txt](https://harishsg99.gitbook.io/scraphoney/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://harishsg99.gitbook.io/scraphoney/master.md).

# ScrapHoney API documentation

## Scrape Website with Scrape API

<mark style="color:green;">`POST`</mark> `-https://scrapehoney.p.rapidapi.com/`

This endpoint allows you to get free cakes.

#### Query Parameters

| Name | Type   | Description                                                                     |
| ---- | ------ | ------------------------------------------------------------------------------- |
| text | string | text should be in the format of url\@exampleofwanteditem1\@exampleofwanteditem2 |

#### Headers

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| x-rapidapi-key | string | Authentication token |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
[items
0:"https://stackoverflow.com/questions/2081586/web-scraping-with-python"
1:"https://stackoverflow.com/company"
2:"https://stackoverflow.com/teams"
3:"How do I merge two dictionaries in a single expression (taking union of dictionaries)?"
4:"How to execute a program or call a system command from Python"
5:"What are metaclasses in Python?"
6:"Does Python have a ternary conditional operator?"
7:"How do you remove duplicates from a list whilst preserving order?"
8:"Convert bytes to a string"
9:"How to get line count of a large file cheaply in Python?"
10:"Does Python have a string 'contains' substring method?"
11:"Why is “1000000000000000 in range(1000000000000001)” so fast in Python 3?"
]
```

{% endtab %}
{% endtabs %}

## ScrapHoney Usage Example Code in python

```
url = "https://scrapehoney.p.rapidapi.com/"

payload = "text=https://stackoverflow.com/questions/2081586/web-scraping-with-python" + "@" +"What are metaclasses in Python?"
headers = {
    'content-type': "application/x-www-form-urlencoded",
    'x-rapidapi-key': "api_key",
    'x-rapidapi-host': "scrapehoney.p.rapidapi.com"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
```
