Skip to content

Add company

Base URL

POST https://app.datashake.com/api/v2/local_naps

Request parameters

company_name

string Company name.

Code example
curl POST 'https://app.datashake.com/api/v2/local_naps?company_name=Brooklyn%20Burgers%20%26%20Beer' -H 'spiderman-token: 1234567890'
import requests

url = "https://app.datashake.com/api/v2/local_naps"
params = {
    "company_name": "Brooklyn Burgers & Beer"
}
headers = {
    "spiderman-token": "1234567890"
}
response = requests.post(
    url=url,
    params=params,
    headers=headers
}
coming soon
coming soon
coming soon
phone_number

string Company phone number.

Code example
curl POST 'https://app.datashake.com/api/v2/local_naps?company_name=Brooklyn%20Burgers%20%26%20Beer&phone_number=718-788-145' -H 'spiderman-token: 1234567890'
import requests

url = "https://app.datashake.com/api/v2/local_naps"
params = {
    "company_name": "Brooklyn Burgers & Beer",
    "phone_number": "718-788-145"
}
headers = {
    "spiderman-token": "1234567890"
}
response = requests.post(
    url=url,
    params=params,
    headers=headers
}
coming soon
coming soon
coming soon
post_code

string Company post code.

Code example
curl POST 'https://app.datashake.com/api/v2/local_naps?company_name=Brooklyn%20Burgers%20%26%20Beer&phone_number=718-788-145&post_code=11215' -H 'spiderman-token: 1234567890'
import requests

url = "https://app.datashake.com/api/v2/local_naps"
params = {
    "company_name": "Brooklyn Burgers & Beer",
    "phone_number": "718-788-145",
    "post_code": "11215"
}
headers = {
    "spiderman-token": "1234567890"
}
response = requests.post(
    url=url,
    params=params,
    headers=headers
}
coming soon
coming soon
coming soon
competitors

string Fetch data on company competitors.

The default value is set false.

Code example
curl POST 'https://app.datashake.com/api/v2/local_naps?company_name=Brooklyn%20Burgers%20%26%20Beer&phone_number=718-788-145&post_code=11215&competitors=true' -H 'spiderman-token: 1234567890'
import requests

url = "https://app.datashake.com/api/v2/local_naps"
params = {
    "company_name": "Brooklyn Burgers & Beer",
    "phone_number": "718-788-145",
    "post_code": "11215",
    "competitors": True
}
headers = {
    "spiderman-token": "1234567890"
}
response = requests.post(
    url=url,
    params=params,
    headers=headers
}
coming soon
coming soon
coming soon
callback

string A callback is a URL where you would like to receive task results once the job is complete.

Code example
curl POST 'https://app.datashake.com/api/v2/local_naps?company_name=Brooklyn%20Burgers%20%26%20Beer&phone_number=718-788-145&post_code=11215&callabck=https://app.reviewcompany.com/Datashake_callback' -H 'spiderman-token: 1234567890'
import requests

url = "https://app.datashake.com/api/v2/local_naps"
params = {
    "company_name": "Brooklyn Burgers & Beer",
    "phone_number": "718-788-145",
    "post_code": "11215",
    "callabck": "https://app.reviewcompany.com/Datashake_callback"
}
headers = {
    "spiderman-token": "1234567890"
}
response = requests.post(
    url=url,
    params=params,
    headers=headers
}
coming soon
coming soon
coming soon
external_identifier

string If you would like to identify the jobs yourself, you can use external identifier. This value will always be included in our callback payload.

The value cannot exceed 255 characters.

Code example
curl POST 'https://app.datashake.com/api/v2/local_naps?company_name=Brooklyn%20Burgers%20%26%20Beer&phone_number=718-788-145&post_code=11215&external_identifier=qwerty123' -H 'spiderman-token: 1234567890'
import requests

url = "https://app.datashake.com/api/v2/local_naps"
params = {
    "company_name": "Brooklyn Burgers & Beer",
    "phone_number": "718-788-145",
    "post_code": "11215",
    "external_identifier": "qwerty123"
}
headers = {
    "spiderman-token": "1234567890"
}
response = requests.post(
    url=url,
    params=params,
    headers=headers
}
coming soon
coming soon
coming soon

Rules and restrictions

To perform the task, we need at least company_name parameter.

Response

API Response example
{
    "job_id": 92222,
    "message": "Added this Local NAP to the queue...",
    "status": 200,
    "success": true
}

Remember to store the job_id internally, you will need the value to GET the status for the local NAP audit!