Ta kontakt med oss

MARKNADSFÖRING

7 Strategies for Memorial Day Sales

Publicerad

7 strategies for memorial day sales

Memorial Day means many things to many people. At its heart, it’s a day to commemorate the brave American soldiers who died fighting for this country. For many, the Memorial Day weekend also marks the start of summer and a chance to grab a deal in the annual holiday shopping event.

The shopping event is no longer the preserve of brick-and-mortar stores. Research by Namogoo shows e-commerce fashion sales soared over Memorial Day 2020, up 380 percent compared to the year before. Conversions increased by 335 percent, too.

These kinds of figures don’t happen by magic, however. Marketing plays a crucial role in your store’s success.

That’s why I’m going to show seven strategies to send your Memorial Day sales soaring.

7 Tips for E-Commerce Memorial Day Sales

A record-breaking Memorial Day doesn’t happen by luck. By using one or several of the following tips, you give your store a better chance of getting noticed, winning new customers, and having a great weekend.

1. Run a Paid Ad Campaign Showcasing Your Sales

Succeeding over the Memorial Day weekend is all about standing out. Big brands may do this with television commercials or billboards. Smaller brands often stick to social media. I recommend combining the two via a paid ad campaign on social media.

While few brands can afford to go all out on a TV ad, many e-commerce brands can afford a short paid ad campaign, especially if it’s optimized for conversions.

There are two crucial factors you need to get right: The channel you advertise on and the creative you use.

I recommend sticking to Facebook or Google for your paid ads. These platforms offer the greatest reach and the best targeting tools to help make sure your paid media budget goes the furthest.

When it comes to ad creative, it’s all about standing out. Using red, white, and blue, and an American flag are a given. But also consider including summer-related imagery that so many consumers relate to the holiday.

It’s essential to remember that, unlike Independence Day, this is a day of remembrance. Keep your tone respectful of the fallen and their loved ones, even if you’re focusing on summer fun. This ad from My Mind’s Eye does a great job of finding this balance: It’s eye-catching, positive, and still reminds viewers of the reason for the holiday.

Tips for E-Commerce Memorial Day Sales - Run a Paid Ad Campaign Showcasing Your Sales

Use Memorial Day hashtags on social media platforms, but be careful about the kind of content you post. Some people may be using these hashtags to search for information around the holiday itself and may be offended by overly promotional material.

2. Tease Your Sales on Social Media Without Revealing What They Are Until Memorial Day

Teasing your Memorial Day sales on social media is a fantastic way to drum up anticipation and build a potential customer base well before the big day. By running it on social channels, you have the chance to pick up thousands of new users who have never shopped with you before.

Se även  Tinuiti Live 2023 Session Recap: elf Beauty

Get your social media calendar in place well ahead of the holiday. The more time you have to post, the more anticipation you can build. This is as true for your email marketing campaign as it is for your social media posts.

Till exempel, The Pampered Iggy—an artist who makes outfits for Italian Greyhounds—teases their upcoming Memorial Day sales in this simple but effective image:

Memorial Day Sales - Tease Your Sales on Social Media

3. Run a Flash Sale

Unlike the winter holiday shopping season, Memorial Day sales last for a couple of days at most. This makes it ripe for flash sales.

These sales typically come with substantial discounts and are all about encouraging consumers to make impulse purchases. They’re also a great way to grab some press attention and make sure customers visit your store over your competitors.

Focusing on your new summer products is the best strategy here. Many consumers wait until Memorial Day weekend to make their spring and summer purchases, so they’re on the lookout for this season’s items. Make the discounts too good to avoid.

Getting the word out about your sales will be just as important. Consider using a paid ad campaign as I described above to promote your sales, but don’t forget about your email list or social media followers.

4. Sell Winter Items at a Deep Discount

Everyone loves a discount, especially on Memorial Day. Price drops between 20 percent and 90 percent are common. There’s no better time to get rid of leftover winter items while attracting new customers than to sell them cheap.

These sales can run alongside your standard Memorial Day sales events, or they can stand on their own. It all depends on what products you stock for summer. Brands that tend to do well during the summer months may prefer to emphasize their new line of products. On the other hand, winter sports stores may just want to make their steep discounts the center of attention.

5. Honor Veterans and Their Families

Memorial Day is a day of remembrance for fallen soldiers. This is why it’s essential to stay positive but not too celebratory about the unofficial start of summer.

Richard Levick, chairman and CEO of LEVICK, says:

Remembrance and relaxation both play important roles in our lives, but they should occupy separate spheres…When brands forget to respect that separation, and when executives who don’t understand the true meaning of Memorial Day are in control of a company’s marketing and social media outreach, insensitive—even offensive—things happen.

In particular, he recommends against potentially exploitative imagery of military funeral services, families in mourning, and so forth. Many companies juxtapose these images with messages of “FLASH SALE!” and “Happy Memorial Day!” which can ruffle feathers.

Not all veterans and families want to hear “thank you for your service” on Memorial Day and want the day focused on those who have been lost. That said, honoring veterans, active duty military, and their families can be done tastefully and well, without drawing focus away from the meaning of the day—chances are many of them have lost someone in the line of duty.

Se även  Google erbjuder ändringar av adtech-enheter för att avvärja en antitrustprocess

There are many ways you can honor veterans and active service people. One option is to give them early or preferential access to your sale. Another is to offer them discounts or special offers. You could even give away small items as gifts.

But a particularly special thing you can do to show your understanding and gratitude? Donate a portion of your proceeds from your Memorial Day sale to a charity supporting the families of fallen soldiers, like the Tragedy Assistance Program for Survivors (TAPS) or the Children of Fallen Patriots Foundation. Mention this plan in your Memorial Day marketing materials, but keep the focus on those who need the help, not how awesome you are for doing this.

6. Contact Websites Running Sales Roundups to Get Your Store Featured

The Memorial Day weekend is a fantastic source of content for new publications, many of which include roundups of all the best sales. It’s not an accident when brands get included in these roundups. More often than not, it’s the result of a lot of outreach work.

get your store featured in memorial day sales roundups

Start by finding publications in your industry that have produced Memorial Day roundups in the past. If they did a roundup last year, there’s a good chance it will be on the editorial calendar this year.

You can also target bigger, broader publications that aren’t necessarily tied to one industry. Here are just a few websites that have created Memorial Day sales roundups in the past:

Next, draft an email to send to each of these publications. Personalize it a bit, but you can keep the bulk of it the same. Highlight what you have on sale over the Memorial Day weekend, the kind of discounts customers should expect, and why your deal is better than your competitors.

7. Set Up a Virtual Event With a Live Sale Segment

You don’t have to have a brick-and-mortar store to run a live sales event.

There are even some pretty significant benefits stores can realize by running virtual sales events. They are way more accessible for one. You’ll be able to accommodate significantly more attendees (which means more customers), and they’ll be able to tune in from anywhere in the world, too.

It will also be much cheaper to run a virtual sales event than an in-person one. Webinar software and a high-quality camera will cost a few hundred bucks at the most. That’s pretty much all you need. It will be much cheaper for customers who don’t have to travel to your store, too, meaning more money to spend on the sale.

You’ll want to make your sales event as fun and inclusive as possible. To this end, make sure to run games and activities and not just showcase your products. You could even run giveaways and competitions to give away some of your newest products for free.

Se även  11 Ways to Improve E-commerce Category Pages for SEO

Make sure that you devote a good chunk of time to your sales products, though. The whole point of running this kind of event is to increase sales, so it makes sense to spend at least the latter half of the event modeling your new clothing range or showing your new products in action.

After the pandemic, you may be facing more competition than usual when it comes to online events. It will pay to get the word out early and promote your virtual event as much as possible. Social media, email campaigns, and your website are all great places to start.

Memorial Day Sales FAQ

Which channels should I run paid ads on?

Facebook, Instagram, and Google are three of the best platforms to run paid ad campaigns on this Memorial Day weekend.

How long should my flash sale last?

It can last as little as a few hours, but don’t let it go on for longer than the weekend.

How can I avoid looking like I’m cashing in on an important holiday?

You can incorporate both summer and solemnity. Don’t overdo it on the joy, but keep the message positive. Consider donating proceeds to relevant organizations.

What should I include in my outreach email to publications?

Keep your email as short as possible, but try to stand out. State how much consumers can save, what products are on sale, and any other essential details.

Which platform should I choose for my virtual event?

Facebook or Zoom are two popular platforms that are relatively inexpensive (if not free) and stable to run events on.

Conclusion: How to Increase Memorial Day Sales

Memorial Day weekend is one of the biggest shopping events on the calendar. You can’t just launch a sale and expect customers to turn up, however, especially if you’re an e-commerce store.

Running ads, making the most of social media, and reaching out to online publications are vital to get the word out. Making sure your sale strikes the right tone with customers will be key to increasing conversions.

But don’t stop there. The best e-commerce stores use the Memorial Day weekend as a jumping-off point and do everything they can to keep holiday sales high after the Memorial Day spike.

Which tactics are you going to use this Memorial Day?

Se hur min byrå kan köra Massiv Mängder av trafik till din webbplats

  • SEO – lås upp enorma mängder SEO-trafik. Se verkliga resultat.
  • Innehållsmarknadsföring – vårt team skapar episkt innehåll som kommer att delas, få länkar och locka trafik.
  • Betald media – effektiva betalda strategier med tydlig ROI.

Boka ett samtal

Neilpatel.com

Håll ett öga på vad vi gör
Bli först med att få de senaste uppdateringarna och exklusivt innehåll direkt till din e-postinkorg.
Vi lovar att inte spamma dig. Du kan avbryta prenumerationen när som helst.
Ogiltig e-postadress

MARKNADSFÖRING

Mnemonic Content Strategy Framework Can Spark Conversations

Publicerad

Mnemonic Content Strategy Framework Can Spark Conversations

I’m a sucker for mnemonics.

In fact, I remember how to spell it by “Me Nomics Except M nOt N In Case Spelling.”

OK, that’s a lie. But I daresay ChatGPT could never come up with that.

Anyway, one of my favorite idea-remembering devices comes from my hero Philip Kotler. He reduces his perfect definition of marketing to CCDVTP – Create and Communicate Value to a Target at a Profit.”

I lean on that mnemonic device when anyone asks about the best definition of marketing’s function in a business.

However, what makes a great mnemonic like CCDVTP is that each word the letter represents has something deeper behind it. So it’s not just six words – it’s six operating concepts with definitions made easier to remember by just remembering how the six words go together.

A mnemonic device for content strategy

I’ve written about the standard framework for developing or strengthening your content strategy. It’s one of the core modules of a CMI University course. It can be a lot to take in because the framework’s concepts and definitions need to be explained in varying levels of detail.

So, recently, I created a mnemonic device to use in my explanation – the 5 Cs: Coordination och Collaboration produce Innehåll innan Containers and make Channels measurable.

5Cs of #ContentStrategy: Coordination and Collaboration produce Content before Containers and make Channels measurable via @Robert_Rose @CMIContent. Klicka för att tweeta

Se även  Tinuiti Live 2023 Session Recap: elf Beauty

It works as a core or high-level definition of a content marketing strategy. But, like Kotler’s CCDVTP, it also lets me drill into the framework’s five concepts or pressure points. Let me explain:

Coordination

The primary purpose of a innehållsstrategi is to develop and manage core responsibilities and processes. In addition, they allow marketing to build and continually assess resource allocation, skill sets, and charters the marketing team needs to make content a företag strength.

Most businesses that lack this C struggle with content as a repeatable or measurable approach. As I’ve said, content is everyone’s job in many businesses and no one’s strategy. A key element of a content strategy is a focus on building coordination into how ideas become content and ultimately generate business value.

Most businesses that lack coordination struggle with making #content a repeatable and measurable approach, says @Robert_Rose. Klicka för att tweeta

Collaboration

In many businesses, content is developed in silos, especially with sales and marketing. Sometimes, it may be divided by channel – web, email, and sales teams don’t work together. In other cases, it may be by function – PR, sales, marketing, brand, and demand generation have different approaches.

Content is a team sport. The practitioners’ job is not to be good at content but to enable the business to be good at content. Scalability only happens through an effective, collaborative approach to transforming ideas into content and content into experiences.

Se även  7 tips + tecken att hålla utkik efter

Content before containers

As marketers, you are trained to think container first and content second. You start with “I need a web page,” “I need an email,” or “I need a blog post.” Then, your next step is to create content specific to that container.

If you start with “I need a blog post” and then create the #content idea, you’re doing it wrong, says @Robert_Rose via @CMIContent. Klicka för att tweeta

I can’t tell you how many big ideas I’ve seen trapped in the context of a blog post simply because that was how it was conceived. I’ve also seen the reverse – small ideas spun into an e-book or white paper because someone wanted that digital asset.

This pressure point requires reverse thinking about your business’ process to create content. The first step must be to create fully formed ideas (big and small) and then (and only then) figure out which containers and how many might be appropriate.

My test to see whether marketing teams put content before containers is to look at their request or intake form. Does it say, “What kind of content do you need?” and list options, such as email, white paper, e-book, and brochure?  Or does it say, “Please explain the idea or story you’d like to develop more fully?”

Se även  5 enkla tips för e-handelsannonsering för att öka försäljningen

Channels

I purposely put channels last because they express the kind of content you create. Channels dictate how you ultimately reach the customers and how the customers will access your content. Which or how many of your content channels do you treat as a media company would?

Is your corporate blog truly centered on the audience, or is it centered on your product or brand? Is it a repository where you put everything from news about your product and how to use it to what to expect in the future and how other customers use your product?

What about your social media, website, newsletters, and thought leadership center? What is their purpose and editorial strategy? How do you evolve your content products as your audience changes as a media company does? Without a clear strategy for every channel, the measurement of content becomes guesswork at best.

When you examine your strategic approach to content, I hope the 5Cs mnemonic device helps you have those necessary conversations around coordination, collaboration, content before containers, and channels with the stakeholders in your business.

Det är din historia. Berätta väl.

Prenumerera till arbetsdags- eller veckovisa CMI-e-postmeddelanden för att få Rose-Colored Glasses i din inkorg varje vecka. 

HANDPLOCKAT RELATERAT INNEHÅLL:

Omslagsbild av Joseph Kalinowski/Content Marketing Institute



Källlänk

Håll ett öga på vad vi gör
Bli först med att få de senaste uppdateringarna och exklusivt innehåll direkt till din e-postinkorg.
Vi lovar att inte spamma dig. Du kan avbryta prenumerationen när som helst.
Ogiltig e-postadress
Fortsätt läsa

MARKNADSFÖRING

The Moz Links API: An Introduction

Publicerad

The Moz Links API: An Introduction

What exactly IS an API? They’re those things that you copy and paste long strange codes into Screaming Frog for links data on a Site Crawl, right?

I’m here to tell you there’s so much more to them than that – if you’re willing to take just a few little steps. But first, some basics.

What’s an API?

API stands for “application programming interface”, and it’s just the way of… using a thing. Everything has an API. The web is a giant API that takes URLs as input and returns pages.

But special data services like the Moz Links API have their own set of rules. These rules vary from service to service and can be a major stumbling block for people taking the next step.

When Screaming Frog gives you the extra links columns in a crawl, it’s using the Moz Links API, but you can have this capability anywhere. For example, all that tedious manual stuff you do in spreadsheet environments can be automated from data-pull to formatting and emailing a report.

If you take this next step, you can be more efficient than your competitors, designing and delivering your own SEO services instead of relying upon, paying for, and being limited by the next proprietary product integration.

GET vs. POST

Most APIs you’ll encounter use the same data transport mechanism as the web. That means there’s a URL involved just like a website. Don’t get scared! It’s easier than you think. In many ways, using an API is just like using a website.

As with loading web pages, the request may be in one of two places: the URL itself, or in the body of the request. The URL is called the “endpoint” and the often invisibly submitted extra part of the request is called the “payload” or “data”. When the data is in the URL, it’s called a “query string” and indicates the “GET” method is used. You see this all the time when you search:

https://www.google.com/search?q=moz+links+api <-- GET method 

When the data of the request is hidden, it’s called a “POST” request. You see this when you submit a form on the web and the submitted data does not show on the URL. When you hit the back button after such a POST, browsers usually warn you against double-submits. The reason the POST method is often used is that you can fit a lot more in the request using the POST method than the GET method. URLs would get very long otherwise. The Moz Links API uses the POST method.

Making requests

A web browser is what traditionally makes requests of websites for web pages. The browser is a type of software known as a client. Clients are what make requests of services. More than just browsers can make requests. The ability to make client web requests is often built into programming languages like Python, or can be broken out as a standalone tool. The most popular tools for making requests outside a browser are curl och wget.

We are discussing Python here. Python has a built-in library called URLLIB, but it’s designed to handle so many different types of requests that it’s a bit of a pain to use. There are other libraries that are more specialized for making requests of APIs. The most popular for Python is called requests. It’s so popular that it’s used for almost every Python API tutorial you’ll find on the web. So I will use it too. This is what “hitting” the Moz Links API looks like:

response = requests.post(endpoint, data=json_string, auth=auth_tuple)

Given that everything was set up correctly (more on that soon), this will produce the following output:

{'next_token': 'JYkQVg4s9ak8iRBWDiz1qTyguYswnj035nqrQ1oIbW96IGJsb2dZgGzDeAM7Rw==',
 'results': [{'anchor_text': 'moz',
              'external_pages': 7162,
              'external_root_domains': 2026}]}

This is JSON data. It’s contained within the response object that was returned from the API. It’s not on the drive or in a file. It’s in memory. So long as it’s in memory, you can do stuff with it (often just saving it to a file).

Se även  US martech spending set to break $20 billion this year

If you wanted to grab a piece of data within such a response, you could refer to it like this:

response['results'][0]['external_pages']

This says: “Give me the first item in the results list, and then give me the external_pages value from that item.” The result would be 7162.

NOTE: If you’re actually following along executing code, the above line won’t work alone. There’s a certain amount of setup we’ll do shortly, including installing the requests library and setting up a few variables. But this is the basic idea.

JSON

JSON stands for JavaScript Object Notation. It’s a way of representing data in a way that’s easy for humans to read and write. It’s also easy for computers to read and write. It’s a very common data format for APIs that has somewhat taken over the world since the older ways were too difficult for most people to use. Some people might call this part of the “restful” API movement, but the much more difficult XML format is also considered “restful” and everyone seems to have their own interpretation. Consequently, I find it best to just focus on JSON and how it gets in and out of Python.

Python dictionaries

I lied to you. I said that the data structure you were looking at above was JSON. Technically it’s really a Python dictionary or dict datatype object. It’s a special kind of object in Python that’s designed to hold key/value pairs. The keys are strings and the values can be any type of object. The keys are like the column names in a spreadsheet. The values are like the cells in the spreadsheet. In this way, you can think of a Python dict as a JSON object. For example here’s creating a dict in Python:

my_dict = {
    "name": "Mike",
    "age": 52,
    "city": "New York"
}

And here is the equivalent in JavaScript:

var my_json = {
    "name": "Mike",
    "age": 52,
    "city": "New York"
}

Pretty much the same thing, right? Look closely. Key-names and string values get double-quotes. Numbers don’t. These rules apply consistently between JSON and Python dicts. So as you might imagine, it’s easy for JSON data to flow in and out of Python. This is a great gift that has made modern API-work highly accessible to the beginner through a tool that has revolutionized the field of data science and is making inroads into marketing, Jupyter Notebooks.

Flattening data

But beware! As data flows between systems, it’s not uncommon for the data to subtly change. For example, the JSON data above might be converted to a string. Strings might look exactly like JSON, but they’re not. They’re just a bunch of characters. Sometimes you’ll hear it called “serializing”, or “flattening”. It’s a subtle point, but worth understanding as it will help with one of the largest stumbling blocks with the Moz Links (and most JSON) APIs.

Objects have APIs

Actual JSON eller dict objects have their own little APIs for accessing the data inside of them. The ability to use these JSON and dict APIs goes away when the data is flattened into a string, but it will travel between systems more easily, and when it arrives at the other end, it will be “deserialized” and the API will come back on the other system.

Data flowing between systems

This is the concept of portable, interoperable data. Back when it was called Electronic Data Interchange (or EDI), it was a very big deal. Then along came the web and then XML and then JSON and now it’s just a normal part of doing business.

Se även  11 Ways to Improve E-commerce Category Pages for SEO

If you’re in Python and you want to convert a dict to a flattened JSON string, you do the following:

import json

my_dict = {
    "name": "Mike",
    "age": 52,
    "city": "New York"
}

json_string = json.dumps(my_dict)

…which would produce the following output:

'{"name": "Mike", "age": 52, "city": "New York"}'

This looks almost the same as the original dict, but if you look closely you can see that single-quotes are used around the entire thing. Another obvious difference is that you can line-wrap real structured data for readability without any ill effect. You can’t do it so easily with strings. That’s why it’s presented all on one line in the above snippet.

Such stringifying processes are done when passing data between different systems because they are not always compatible. Normal text strings on the other hand are compatible with almost everything and can be passed on web-requests with ease. Such flattened strings of JSON data are frequently referred to as the request.

Anatomy of a request

Again, here’s the example request we made above:

response = requests.post(endpoint, data=json_string, auth=auth_tuple)

Now that you understand what the variable name json_string is telling you about its contents, you shouldn’t be surprised to see this is how we populate that variable:

 data_dict = {
    "target": "moz.com/blog",
    "scope": "page",
    "limit": 1
}

json_string = json.dumps(data_dict)

…and the contents of json_string looks like this:

'{"target": "moz.com/blog", "scope": "page", "limit": 1}'

This is one of my key discoveries in learning the Moz Links API. This is in common with countless other APIs out there but trips me up every time because it’s so much more convenient to work with structured dicts than flattened strings. However, most APIs expect the data to be a string for portability between systems, so we have to convert it at the last moment before the actual API-call occurs.

Pythonic loads and dumps

Now you may be wondering in that above example, what a dump is doing in the middle of the code. The json.dumps() function is called a “dumper” because it takes a Python object and dumps it into a string. The json.loads() function is called a “loader” because it takes a string and loads it into a Python object.

The reason for what appear to be singular and plural options are actually binary and string options. If your data is binary, you use json.load() och json.dump(). If your data is a string, you use json.loads() och json.dumps(). The s stands for string. Leaving the s off means binary.

Don’t let anybody tell you Python is perfect. It’s just that its rough edges are not excessively objectionable.

Assignment vs. equality

For those of you completely new to Python or programming in general, what we’re doing when we hit the API is called an assignment. The result of requests.post() is being assigned to the variable named response.

response = requests.post(endpoint, data=json_string, auth=auth_tuple)

We are using the = sign to assign the value of the right side of the equation to the variable on the left side of the equation. The variable response is now a reference to the object that was returned from the API. Assignment is different from equality. The == sign is used for equality.

# This is assignment:
a = 1  # a is now equal to 1

# This is equality:
a == 1  # True, but relies that the above line has been executed

The POST method

response = requests.post(endpoint, data=json_string, auth=auth_tuple)

De requests library has a function called post() that takes 3 arguments. The first argument is the URL of the endpoint. The second argument is the data to send to the endpoint. The third argument is the authentication information to send to the endpoint.

Se även  How to Write a Sales Page

Keyword parameters and their arguments

You may notice that some of the arguments to the post() function have names. Names are set equal to values using the = sign. Here’s how Python functions get defined. The first argument is positional both because it comes first and also because there’s no keyword. Keyworded arguments come after position-dependent arguments. Trust me, it all makes sense after a while. We all start to think like Guido van Rossum.

def arbitrary_function(argument1, name=argument2):
    # do stuff

The name in the above example is called a “keyword” and the values that come in on those locations are called “arguments”. Now arguments are assigned to variable names right in the function definition, so you can refer to either argument1 or argument2 anywhere inside this function. If you’d like to learn more about the rules of Python functions, you can read about them här.

Setting up the request

Okay, so let’s let you do everything necessary for that success assured moment. We’ve been showing the basic request:

response = requests.post(endpoint, data=json_string, auth=auth_tuple)

…but we haven’t shown everything that goes into it. Let’s do that now. If you’re following along and don’t have the requests library installed, you can do so with the following command from the same terminal environment from which you run Python:

pip install requests

Often times Jupyter will have the requests library installed already, but in case it doesn’t, you can install it with the following command from inside a Notebook cell:

!pip install requests

And now we can put it all together. There’s only a few things here that are new. The most important is how we’re taking 2 different variables and combining them into a single variable called AUTH_TUPLE. You will have to get your own ACCESSID and SECRETKEY from the Moz.com website.

The API expects these two values to be passed as a Python data structure called a tuple. A tuple is a list of values that don’t change. I find it interesting that requests.post() expects flattened strings for the data parameter, but expects a tuple for the auth parameter. I suppose it makes sense, but these are the subtle things to understand when working with APIs.

Here’s the full code:

import json
import pprint
import requests

# Set Constants
ACCESSID = "mozscape-1234567890"  # Replace with your access ID
SECRETKEY = "1234567890abcdef1234567890abcdef"  # Replace with your secret key
AUTH_TUPLE = (ACCESSID, SECRETKEY)

# Set Variables
endpoint = "https://lsapi.seomoz.com/v2/anchor_text"
data_dict = {"target": "moz.com/blog", "scope": "page", "limit": 1}
json_string = json.dumps(data_dict)

# Make the Request
response = requests.post(endpoint, data=json_string, auth=AUTH_TUPLE)

# Print the Response
pprint(response.json())

…which outputs:

{'next_token': 'JYkQVg4s9ak8iRBWDiz1qTyguYswnj035nqrQ1oIbW96IGJsb2dZgGzDeAM7Rw==',
 'results': [{'anchor_text': 'moz',
              'external_pages': 7162,
              'external_root_domains': 2026}]}

Using all upper case for the AUTH_TUPLE variable is a convention many use in Python to indicate that the variable is a constant. It’s not a requirement, but it’s a good idea to follow conventions when you can.

You may notice that I didn’t use all uppercase for the endpoint variable. That’s because the anchor_text endpoint is not a constant. There are a number of different endpoints that can take its place depending on what sort of lookup we wanted to do. The choices are:

  1. anchor_text

  2. final_redirect

  3. global_top_pages

  4. global_top_root_domains

  5. index_metadata

  6. link_intersect

  7. link_status

  8. linking_root_domains

  9. länkar

  10. top_pages

  11. url_metrics

  12. usage_data

And that leads into the Jupyter Notebook that I prepared on this topic located here on Github. With this Notebook you can extend the example I gave here to any of the 12 available endpoints to create a variety of useful deliverables, which will be the subject of articles to follow.

Källlänk

Håll ett öga på vad vi gör
Bli först med att få de senaste uppdateringarna och exklusivt innehåll direkt till din e-postinkorg.
Vi lovar att inte spamma dig. Du kan avbryta prenumerationen när som helst.
Ogiltig e-postadress
Fortsätt läsa

MARKNADSFÖRING

Vad företag får fel om innehållsmarknadsföring 2023 [Experttips]

Publicerad

Vad företag får fel om innehållsmarknadsföring 2023 [Experttips]

The promise of inbound marketing is a lure that attracts businesses of all kinds, but few understand the efforts it takes to be successful. After a few blog posts, they flame out and grumble “We tried content marketing, but it didn’t really work for us.” I hear this from prospective clients all the time.

(mer …)

Se även  15 Ecommerce SEO Experts Reveal Top Insights For 2023
Håll ett öga på vad vi gör
Bli först med att få de senaste uppdateringarna och exklusivt innehåll direkt till din e-postinkorg.
Vi lovar att inte spamma dig. Du kan avbryta prenumerationen när som helst.
Ogiltig e-postadress
Fortsätt läsa

Trendigt

sv_SESvenska