Skip to content

Commit 8d0fa24

Browse files
committed
Fix typos in chunk 3 (files 31-40)
1 parent 9cebaf5 commit 8d0fa24

File tree

10 files changed

+31
-30
lines changed

10 files changed

+31
-30
lines changed

api-reference/overview/billing.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: 'Billing'
33
icon: "file-invoice-dollar"
44
---
55

6-
Pricing for API is charged along two dimensions. All details can be found at [dune.com/pricing](https://dune.com/pricing)
6+
Pricing for the API is charged along two dimensions. All details can be found at [dune.com/pricing](https://dune.com/pricing)
77

88
<Note>
99
If your execution fails, then no credits are charged. If you execute a query but never pull the results, you are only charged for the execution.
@@ -17,7 +17,7 @@ If your execution fails, then no credits are charged. If you execute a query but
1717
| Queries Endpoint | Available on Plus and Premium |
1818
| Webhooks (Alerts) | 1 on Free <br></br> 5 on Plus <br></br> 50 on Premium |
1919

20-
A datapoint applies to query results after the query is run, and can in most cases be thought of `rows * columns` with an additional limit of 100 avg bytes per cell in a set of results. This can be expressed as:
20+
A datapoint applies to query results after the query is run, and can in most cases be thought of as `rows * columns` with an additional limit of 100 avg bytes per cell in a set of results. This can be expressed as:
2121

2222
$$
2323
Credits = \frac{Datapoints}{1000} = \frac{\max(\text{rows} * \text{columns}, \lceil \frac{\text{totalbytes}}{100} \rceil)}{1000}

api-reference/overview/faq.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ There are no major performance differences within a specific performance tier wh
99

1010
The Dune API gives you programmatic access to the capabilities and data sets that can already be accessed from the Dune web app. The same queries and results exist in the web app, even if created/executed from the API (and vice versa).
1111

12-
#### What are Sim APIs and how do they differ from the Dune API?
12+
#### What are Sim APIs and how do they differ from the Dune API?
1313

1414
Sim APIs, formerly Echo, are a separate, developer-focused product by Dune, providing realtime access to EVM and SVM blockchain data.
1515
They are designed for building apps like realtime wallets and AI agents.
@@ -64,7 +64,7 @@ Yes!
6464

6565
The results storage period can be found on the API response on the “expires_at” field in the execution status and results body.
6666

67-
#### How do I import Dune data into a google sheet?
67+
#### How do I import Dune data into a Google sheet?
6868

69-
Use "Import Data" to import your CSV results into a google sheet using "api_key" as a param. (We advise against doing this any public document where your API key can be viewed and compromised.)
69+
Use "Import Data" to import your CSV results into a Google sheet using "api_key" as a param. (We advise against doing this in any public document where your API key can be viewed and compromised.)
7070
`=importData("https://api.dune.com/api/v1/query/{{query_id}}/results/csv?api_key={{api_key}}")`. Then, [schedule a query execution](https://dune.com/docs/app/query-editor/query-scheduler/?h=scheduling) to have your results regularly updated on a set schedule.

api-reference/overview/introduction.mdx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ They offer improved performance and a broader set of features for developers.
3535
</Note>
3636

3737
## Custom Endpoints
38-
<Card
39-
title="Custom Endpoints"
40-
icon="circle-down"
41-
href="/api-reference/custom/overview"
42-
>
43-
Create and manage API endpoints from Dune queries directly on the web app, enabling data consumption via custom URLs with scheduled query execution.
44-
</Card>
38+
39+
<Card
40+
title="Custom Endpoints"
41+
icon="circle-down"
42+
href="/api-reference/custom/overview"
43+
>
44+
Create and manage API endpoints from Dune queries directly on the web app, enabling data consumption via custom URLs with scheduled query execution.
45+
</Card>
4546

4647
## SQL Endpoints
4748
They help you manage and execute queries, as well as fetch data from these queries.

api-reference/overview/rate-limits.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ For example, on the Free plan, you have a low limit of 15 requests per minute an
4444

4545
**Data Return Limit**
4646

47-
Dune internally has a maximum query result size limit (which currently is 8GB, but subject to increase in the future). If your query yields more than 8GB of data, the result will be truncated in storage. In such cases, pulling the result data (using pagination) but without specifying `allow_partial_results` set to true will trigger an error message: "error": "Partial Result, please request with 'allows_partial_results=true'". If you wish to retrieve partial results, you can pass the parameter `allow_partial_results=true`. But please make sure you indeed want to fetch the truncated result.
47+
Dune internally has a maximum query result size limit (which currently is 8GB, but subject to increase in the future). If your query yields more than 8GB of data, the result will be truncated in storage. In such cases, pulling the result data (using pagination) but without specifying `allow_partial_results` set to true will trigger an error message: "error": "Partial Result, please request with 'allow_partial_results=true'". If you wish to retrieve partial results, you can pass the parameter `allow_partial_results=true`. But please make sure you indeed want to fetch the truncated result.

api-reference/overview/sdks.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ icon: "sd-cards"
77

88
We currently support a [Python SDK](https://github.com/duneanalytics/dune-client) for working with our API. You'll find `Python SDK` snippets on all endpoint pages, if you want to go deeper into the code then check out [these files](https://github.com/duneanalytics/dune-client/tree/main/dune_client/api).
99

10-
To still the SDK, run the following command in your terminal:
10+
To install the SDK, run the following command in your terminal:
1111

1212
```bash
1313
pip install dune-client
@@ -49,7 +49,7 @@ results_df = dune.run_query_dataframe(query)
4949

5050
## Typescript
5151

52-
We have a community client from that can be [found here](https://www.npmjs.com/package/@duneanalytics/client-sdk).
52+
We have a community client that can be [found here](https://www.npmjs.com/package/@duneanalytics/client-sdk).
5353

5454
To install, run this command
5555

@@ -66,7 +66,7 @@ const { DUNE_API_KEY } = process.env;
6666
const client = new DuneClient(DUNE_API_KEY ?? "");
6767
const queryID = 1215383;
6868
const params = {
69-
query_parameters = [
69+
query_parameters: [
7070
QueryParameter.text("TextField", "Plain Text"),
7171
QueryParameter.number("NumberField", 3.1415926535),
7272
QueryParameter.date("DateField", "2022-05-04 00:00:00"),

api-reference/overview/troubleshooting.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Dune uses conventional HTTP response codes to indicate the success or failure of
1717
| 429 | Too Many Requests | Too many requests hit the API too quickly (rate limited). |
1818
| 500 | Server Errors | Generic internal server error. |
1919

20-
For specific error code information, please refer to each of the endpoint itself. Here we list some common errors and suggest possible solution:
20+
For specific error code information, please refer to each of the endpoints themselves. Here we list some common errors and suggest possible solutions:
2121

2222
#### Invalid API key
2323
```json
@@ -34,7 +34,7 @@ You did not input a valid API key. You can go generate a new key and make sure y
3434
"error": "not found: Query not found or private"
3535
}
3636
```
37-
When you perform an action to a private query your API key doesn't have access to, you will get this error. If you indeed own this query, please check the context of the API key and the query owner are the same.
37+
When you perform an action on a private query your API key doesn't have access to, you will get this error. If you indeed own this query, please check that the context of the API key and the query owner are the same.
3838

3939

4040
#### Credit limit error

api-reference/projects/endpoint/linea_lxp.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ openapi: 'GET /v1/points/linea/lxp'
1515

1616
| Column | Description | Type |
1717
| ----------------------- | ------------------------------------------------------- | --------------- |
18-
| wallet | User wallet which hold LXP points | string |
18+
| wallet | User wallet which holds LXP points | string |
1919
| current_lxp | Current [Linea Voyage LXP](https://docs.linea.build/use-mainnet/linea-xp) balance | double |
2020
| num_quests | Number of quests completed by the user to obtain LXP | integer |
2121
| on_farcaster | Indicates if the wallet is connected to a Farcaster account | boolean |
@@ -24,7 +24,7 @@ openapi: 'GET /v1/points/linea/lxp'
2424
| connected_wallets | List of wallet addresses connected to the user | array(string)|
2525
| L14D_active_tier | The active tier of the connected wallet user over the last 14 days. Possible values are "vip", "influencer", "star", "active", "npc", and "not active" | string |
2626
| top_channels | Top 3 channels where connected wallet user is active | array(string) |
27-
| top_domains | Top 3 domains frequented casted by the connected wallet user | array(string) |
27+
| top_domains | Top 3 domains frequently casted by the connected wallet user | array(string) |
2828
| top_engagers | Top 3 users who engage with this connected wallet user | array(string) |
2929
| num_followers | Number of followers the connected wallet user has on Farcaster | integer |
3030
| num_onchain_txns | Number of on-chain transactions performed by the connected wallet user | integer |

api-reference/projects/introduction.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Utilize Dune's dedicated APIs to access specific project, protocol, or topic dat
77

88
- **JSON Format**: All endpoints deliver JSON-formatted data for straightforward integration.
99
- **Instant Access**: Begin immediately by [creating a free account](https://dune.com/auth/register) and [obtain an API key](.././overview/authentication).
10-
- **Expansive Data Ecosystem**: Enhance your projects by connecting with an extensive range of on-chain and off-chain data, from [Farcaster](.././farcaster/introduction) to [DEX](.././dex/endpoint/dex_pair) and more. Build alongside with our vibrant community.
10+
- **Expansive Data Ecosystem**: Enhance your projects by connecting with an extensive range of onchain and offchain data, from [Farcaster](.././farcaster/introduction) to [DEX](.././dex/endpoint/dex_pair) and more. Build alongside with our vibrant community.
1111

1212

1313
<CardGroup cols={2}>
@@ -16,7 +16,7 @@ Utilize Dune's dedicated APIs to access specific project, protocol, or topic dat
1616
icon="road-bridge"
1717
href="/api-reference/projects/endpoint/linea_lxp"
1818
>
19-
Get LXP balance for wallet, along with social and onchain behavior stats
19+
Get LXP balance for wallet, along with social and on-chain behavior stats
2020
</Card>
2121

2222
</CardGroup>

api-reference/queries/endpoint/archive.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To access Query endpoints, an [Analyst plan](https://dune.com/pricing) or higher
1414
<RequestExample>
1515

1616
```bash cURL
17-
curl --request GET \
17+
curl --request POST \
1818
--url https://api.dune.com/api/v1/query/{queryId}/archive \
1919
--header 'X-DUNE-API-KEY: <x-dune-api-key>'
2020
```
@@ -37,14 +37,14 @@ url = "https://api.dune.com/api/v1/query/{queryId}/archive"
3737

3838
headers = {"X-DUNE-API-KEY": "<x-dune-api-key>"}
3939

40-
response = requests.request("GET", url, headers=headers)
40+
response = requests.request("POST", url, headers=headers)
4141

4242
print(response.text)
4343

4444
```
4545

4646
```javascript JavaScript
47-
const options = {method: 'GET', headers: {'X-DUNE-API-KEY': '<x-dune-api-key>'}};
47+
const options = {method: 'POST', headers: {'X-DUNE-API-KEY': '<x-dune-api-key>'}};
4848

4949
fetch('https://api.dune.com/api/v1/query/{queryId}/archive', options)
5050
.then(response => response.json())
@@ -65,7 +65,7 @@ func main() {
6565

6666
url := "https://api.dune.com/api/v1/query/{queryId}/archive"
6767

68-
req, _ := http.NewRequest("GET", url, nil)
68+
req, _ := http.NewRequest("POST", url, nil)
6969

7070
req.Header.Add("X-DUNE-API-KEY", "<x-dune-api-key>")
7171

@@ -92,7 +92,7 @@ curl_setopt_array($curl, [
9292
CURLOPT_MAXREDIRS => 10,
9393
CURLOPT_TIMEOUT => 30,
9494
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
95-
CURLOPT_CUSTOMREQUEST => "GET",
95+
CURLOPT_CUSTOMREQUEST => "POST",
9696
CURLOPT_HTTPHEADER => [
9797
"X-DUNE-API-KEY: <x-dune-api-key>"
9898
],
@@ -111,7 +111,7 @@ if ($err) {
111111
```
112112

113113
```java Java
114-
HttpResponse<String> response = Unirest.get("https://api.dune.com/api/v1/query/{queryId}/archive")
114+
HttpResponse<String> response = Unirest.post("https://api.dune.com/api/v1/query/{queryId}/archive")
115115
.header("X-DUNE-API-KEY", "<x-dune-api-key>")
116116
.asString();
117117
```

api-reference/queries/endpoint/create.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ import (
129129
"fmt"
130130
"strings"
131131
"net/http"
132-
"io/ioutil"
132+
"io"
133133
)
134134

135135
func main() {
@@ -146,7 +146,7 @@ func main() {
146146
res, _ := http.DefaultClient.Do(req)
147147

148148
defer res.Body.Close()
149-
body, _ := ioutil.ReadAll(res.Body)
149+
body, _ := io.ReadAll(res.Body)
150150

151151
fmt.Println(res)
152152
fmt.Println(string(body))

0 commit comments

Comments
 (0)